Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
sub getID { my $url = shift; my $content = get($url); die "No: $url" unless $content; my $xmlsimple = XML::Simple->new( ); my $response = $xmlsimple->XMLin($content); return $response->{Item}->{ID}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Error Checking for Array Reference
by davido (Cardinal) on Nov 06, 2005 at 05:30 UTC | |
|
Re: Error Checking for Array Reference
by bobf (Monsignor) on Nov 06, 2005 at 06:18 UTC | |
|
Re: Error Checking for Array Reference
by pg (Canon) on Nov 06, 2005 at 06:34 UTC | |
|
Re: Error Checking for Array Reference
by jdporter (Paladin) on Nov 06, 2005 at 16:05 UTC |