Re: syntax err in Simple.pm ?
Gisle Aas (aas@bergen.sn.no)
Wed, 24 Jul 1996 17:35:02 +0200
In message <9607232207.AA65065@panther.middlebury.edu>, Otis Gospodnetic writes:
> Hello,
>
> I just tried to run some perl code that uses LWP and this is the error I got:
>
> syntax error at /home/its/otisg/lib/perl5/site_perl/HTTP/Status.pm line 140,
> near "sub status_message ("
> BEGIN failed--compilation aborted at
> /home/its/otisg/lib/perl5/site_perl/LWP/Simple.pm line 138.
This is because of the new prototype facilities added to recent
versions of perl, i.e. you will need perl5.002 or better to use the
latest version of libwww-perl.
> sub status_message ($)
> {
> return undef unless exists $StatusCode{$_[0]};
> $StatusCode{$_[0]};
> }
Regards,
Gisle.