note
trammell
Sure; I'd do something like:
<code>
my $doc = get(...);
warn "get() failed" unless $doc;
</code>
I'm assuming that the page actually has content here. If it's an empty string, the test should be
<code>
... unless defined($doc);
</code>
The documenation in [cpan://LWP::Simple] does suggest using [cpan://LWP::UserAgent] if you need more information about the return code. Just a thought.
522053
522190