Mail Archives: djgpp/2000/03/31/06:37:25
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
----__JNP_000_3fe7.2839.1b81
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
I just installed the GNU distribution for Windows 95. I have a short
perl program which runs okay on Unix (SGI). The program has the
statement:
require 'POSIX';
I am issuing the command-line:
perl "c:\My Documents\perl_stuff\abc.pl
The perl interpreter complains with the message:
Can't locate POSIX in @inc (@inc contains: c:/fsf/lib/perl5
c:/fsf/lib/perl5/site cL/fsf/lib/perl5/site .) at c:\My
Documents\perl_stuff\abc.perl line 2.
The distribution CD did not install the POSIX extensions to Perl. I
have no idea what to do to
get this to install. Just copying the missing POSIX.pm file from the
cd to the hard drive does not work. I would appreciate it if someone
could respond to me as I am unable to do anything. Thanks much.
David Boerschlein, boersch AT freewwweb DOT com
The perl code is as follows (and is also attached):
_________________________________________________________________________
_______
#!/fsf/bin/perl
require 'POSIX';
POSIX::tzset();
@zones = POSIX::tzname();
$time_t = POSIX::mktime(0,30,12,15,5,104);
($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst)
= localtime($time_t);
$zone = @zones[$isdst];
$year += 1900;
$dayname = ("Sunday", "Monday", "Tuesday", "Wednesday",
"Thursday", "Friday", "Saturday")[$wday];
$monthname = ("January", "February", "March", "April",
"May", "June", "July", "August",
"September", "October", "November", "December")[$mon];
print "$dayname, $monthname $mday, $year, $hour:$min:$sec ($zone)\n";
$time_t = POSIX::mktime(0,30,12,15,11,104);
($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst)
= localtime($time_t);
$zone = @zones[$isdst];
$year += 1900;
$dayname = ("Sunday", "Monday", "Tuesday", "Wednesday",
"Thursday", "Friday", "Saturday")[$wday];
$monthname = ("January", "February", "March", "April",
"May", "June", "July", "August",
"September", "October", "November", "December")[$mon];
print "$dayname, $monthname $mday, $year, $hour:$min:$sec ($zone)\n";
exit;
----__JNP_000_3fe7.2839.1b81
Content-Type: application/octet-stream; name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