Re: bug in libwww-perl-0.40/wwwdates.pl
Andrew Daviel (andrew@andrew.triumf.ca)
Thu, 19 Sep 1996 23:51:53 -0700 (PDT)
On Thu, 19 Sep 1996, Andrew Daviel wrote:
> If anyone apart from me is still using this, I believe there is a bug in
> libwww-perl-0.40/wwwdates.pl line 211
>
> should read "return (&main'timegm(" not "return (&timegm("
No - it's not that simple. I'll leave the proper resolution to the experts...
except it's obsolete ...
If I don't use timelocal in the main program, then &timegm is required.
If I do use timelocal, then &main'timegm is required.
Methinks it's something in the way "package" has been used in wwwdates
and whether the routine names are local or global. If I understand
timelocal.pl, the subroutine names are global public, but the subroutine
variables are local. wwwdates.pl is written in a different style where
all the routines are private to wwwdates, hence one invokes e.g.
&wwwdates'get_gmtime.
(In case anyone's wondering why I'm not using LWP5, I need dbmopen to work,
at least so as to convert a lot of databases, and so far haven't had the
time to figure out why Perl5 for Linux won't work properly for me).
Andrew