in reply to Re^2: Checking for undef after performing get()
in thread Checking for undef after performing get()
I'm assuming that the page actually has content here. If it's an empty string, the test should bemy $doc = get(...); warn "get() failed" unless $doc;
The documenation in LWP::Simple does suggest using LWP::UserAgent if you need more information about the return code. Just a thought.... unless defined($doc);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Checking for undef after performing get()
by sawtooth (Initiate) on Jan 11, 2006 at 16:21 UTC |