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

Re: [MacPerl] MacPerl5 and libwww-perl-5b7



On Tue, 12 Mar 1996, Brad Cox wrote:

> 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

(...boy, I'm chatty today...)

It's been discussed recently on this list (and someone correct if I 
remember wrong--I'm to lazy to go back and look) that 'my' doesn't work 
correctly outside of subroutines in MacPerl.  I don't believe this has 
been fixed yet (well, there's some confusion about what 'my' should 
do outside of a block)--even in the latest MacPerl rev.  Try it without 
the 'my.'

John Peterson -- University Networking Services -- Brigham Young University
Internet: John_Peterson@byu.edu                       Phone: (801) 378-5007