|
Posted by Gerry Ford on April 15, 2008, 2:09 am
Please log in for more thread options
>> Here's where I run into double trouble. I'm having a heckuva time
>> figuring out what he means with win32::ansiconsole.
>
> Please capitalize module names properly. Case matters.
Thanks for your response. I'll need to shift gears from fortran, which is
case insensitive.
> In any case, I am not sure but I am assuming it is an
> version of the following module:
>
> http://search.cpan.org/~jlmorel/Win32-Console-ANSI-1.00/
I don't think it is. When I have a script with
use Win32::ANSIConsole qw/coninit cls/;
, perl.exe is looking for an absent ANSIConsole.pm that has coninit and cls
defined.
At the above link, I get this:
package Win32::Console::ANSI;
#
#
# Version 1.01 (08/06/2005)
#
# This program is free software; you can redistribute it and/or modify
# it under the same terms as Perl itself.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either the
# GNU General Public License or the Artistic License for more details.
#
use 5.006;
use strict;
use warnings;
require Exporter;
our @ISA = qw(Exporter);
our $VERSION = '1.00';
our %EXPORT_TAGS = (
'all' => [ qw( Title Cursor XYMax SetConsoleSize Cls ScriptCP )],
);
our @EXPORT_OK = ( @{ $EXPORT_TAGS },
);
our @EXPORT = qw(
);
package Win32::Console::ANSI;
require XSLoader;
XSLoader::load('Win32::Console::ANSI', $VERSION);
1;
__END__
# pod data elided for length
First of all, Cls is, by your criterion, different from cls, and there is no
coninit at all.
> If you cannot find that through ppm, you might want to
> add the following repositories:
>
> Name: uwinnipeg
> URL: http://cpan.uwinnipeg.ca/PPMPackages/10xx/package.xml
>
> Name: trouchelle
> URL: http://trouchelle.com/ppm10/package.xml
>
> Name: Bribes
> URL: http://www.bribes.org/perl/ppm/package.xml
I looked at these, and they look like:
Common Gateway Interface Class Lincoln D. Stein (lstein@cshl.org) Automated
accessor generation Marty Pauley (marty+perl@kasei.com) Inheritable,
overridable class data Tony Bowden (tony@tmtm.com) class and object builder,
hash version GomoR (netpkt@gomor.org) Get information about a class and its
structure Adam Kennedy (adamk@cpan.org) Fast prototype-based OO programming
in Perl. Toby Ovod-Everett (toby@ovod-everett.org) Base class for creating
singleton objects Andy Wardley
This looks like it was expecting a program to read text, not a human ambling
about, trying to find a module.
> perl -MNet::NNTP -e "print qq"
> will print the version installed (assuming it is installed).
2.24
>> win32::ansiconsole. Without the module for me to look at, I'm not
>> gonna figure out what, e.g. coninit is.
>
> E:\Home\asu1> ppm install Win32::Console::ANSI
> Downloading Win32-Console-ANSI-1.00...done
> Unpacking Win32-Console-ANSI-1.00...done
> Generating HTML for Win32-Console-ANSI-1.00...done
> Updating files in site area...done
> 7 files installed
How do I replicate this process on windows? As it is, a file that ends in
tar.gz just creates huge problems for me.
>> What's puzzling is that I'm able to use net::nntp having
>> downloaded nothing but AS 5.10. I looked in the installed modules
>> and see no reason for this good fortune.
> You can see at http://perldoc.perl.org/index-modules-N.html
> that both Net::NNTP and Net::SMTP are core modules.
Gotcha. This is necessary viewing for persons who are taking their first
steps with modules.
> However, do read the posting guidelines first.
Just to prove I was there for the sixth time:
Beware of saying ``doesn't work''
--
"Shopping for toilets isn't the most fascinating way to spend a Saturday
afternoon. But it beats watching cable news."
~~ Booman
|