[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] MacPerl5 and libwww-perl-5b7



According to http://perl.com/perl/wwwman/libwww/lib/HTTP/Date.html

>SYNOPSIS
>
> use HTTP::Date;
>
> $stringGMT = time2str(time);   # Format as GMT ascii time
> $time = str2time($stringGMT);  # convert ascii date to machine time

So I tried:

use HTTP::Date;
$time = time;
my $stringGMT = time2str($time);
$nutime = str2time($stringGMT) || die "failed on $stringGMT\n";
print "$stringGMT $time/$nutime\n";

and got...

# failed on Wed, 13 Mar 1996 01:24:54 GMT

This is with MacPerl507rlm and libwww-perl-5b7, both right out of the box.

I probably didn't install libwww correctly....

   perl Makefile.PL
   make
   make test
   make install

is a stone bitch to do on a mac ;-)

Is the problem that I should be digging around for a libwww for MacPerl5???

--
Brad Cox; bcox@gmu.edu; GMU Pgm on Social and Organizational Learning
(703) 968-8229 Fax (703) 934 1578; Web http://www.virtualschool.edu/mon
The Middle of Nowhere Web, a project with paradoxical goals