Ed Avis wrote:
> When LWP::Simple::get() fails it would often be useful to print a more
> informative error message than just 'get failed'.  The following patch
> lets you say
> 
>     $got = get 'http://perl.org/';
>     die "could not get page: $LWP::Simple::error" if not defined $get;
> 
> The error message is not perfect but it is a lot better than nothing.
> $LWP::Simple::error is set by all the functions not just get().

PLEASE, DON'T ADD GLOBAL VARIABLES!!!

If LWP::Simple::get() is not a good interface then use the "complicated" one.

Global variables are not thread safe!!!
Global variables are bad programing!!!

Juan


Reply via email to