[thelist] Perl : LWP question

Gilles Beauregard gilles at balour.org
Wed Feb 2 14:19:36 CST 2005


Allo!

>Giles wrote
> > I need to check the last available version of a web page.
> > To do so, I use the LWP::Simple module of Perl with the following syntax:
> >
> > use LWP::Simple ;
> > ($content_type, $document_length, $modified_time, $expires, $server) =
>head
> > $url ;
> > print ("$content_type <> ",
> > "$document_length <> ",
> > "$modified_time <> ",
> > "$expires <> ",
> > "$server\n");
> >
> > but no value are return.
>
>Giles -
>  Is that your complete script?
>
>Where do you define a value for $url?

The $url is defined at the beginning of the script.
When $url is empty, I already trap this error.

Gilles B.




More information about the thelist mailing list