<?xml version="1.0" encoding="windows-1252"?>
<node id="522203" title="Re^3: Checking for undef after performing get()" created="2006-01-10 10:08:31" updated="2006-01-10 05:08:31">
<type id="11">
note</type>
<author id="65521">
trammell</author>
<data>
<field name="doctext">
Sure; I'd do something like:
&lt;code&gt;
my $doc = get(...);
warn "get() failed" unless $doc;
&lt;/code&gt;
I'm assuming that the page actually has content here.  If it's an empty string, the test should be
&lt;code&gt;
... unless defined($doc);
&lt;/code&gt;
The documenation in [cpan://LWP::Simple] does suggest using [cpan://LWP::UserAgent] if you need more information about the return code.  Just a thought.</field>
<field name="root_node">
522053</field>
<field name="parent_node">
522190</field>
</data>
</node>
