CColin has asked for the wisdom of the Perl Monks concerning the following question:
The context is where the subroutine calling the API service fails (using XML::Simple to parse the returned objectUnsuccessful stat on filename containing newline at /usr/local/share/p +erl/5.8.8/XML/Simple.pm line 939. File does not exist: 500 read failed: [error relating to failure of line in program reproduced in snippet be +low]
I'm assuming if the sub XMLin failed that the file was not found? However, I'm not familiar with what the error message means exactly, tried googling didn't get far. What should I do to get to the bottom of this? Also, at the moment the program crashes out if the error is encountered. Any tips on catching this particular error and continuing appreciated. Thanks Colinmy $response = $userAgent->request($request); my $som=$response->{'_content'}; #print Dumper(\$som); my $result = XMLin($som); # Line where failure occurs.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File does not exist: 500 read failed
by plobsing (Friar) on Dec 07, 2007 at 14:01 UTC | |
by CColin (Scribe) on Dec 07, 2007 at 14:46 UTC | |
by plobsing (Friar) on Dec 07, 2007 at 15:07 UTC | |
|
Re: File does not exist: 500 read failed
by Herkum (Parson) on Dec 07, 2007 at 16:45 UTC | |
by CColin (Scribe) on Dec 07, 2007 at 16:54 UTC | |
by ikegami (Patriarch) on Dec 07, 2007 at 17:14 UTC |