Hammy has asked for the wisdom of the Perl Monks concerning the following question:
Hello, I am a bit puzzled. I have a piece of code that decodes an XML stream and I am getting an error that tells me 'file does not exist'. I am getting the file does not exist on the XMLin line.
This code has worked like a charm for months and now it just stopped. Does anyone have any suggestions? Thank you in advance!
use DBI; use CGI; &set_content(); &callFunctions(); sub callFunctions { my $xml = '<hdsso><hpid>--------</hpid><pin&g +t;abcbs-hd</pin><fname>--------</fname><mname> +;</mname><lname>-------</lname><dob>-------&l +t;/dob><email>-------</email><ls>----------</ +ls><ws>---------</ws></hdsso>'; use XML::Simple; $XMLref = XMLin($xml, suppressempty => ''); } sub set_content { $q = new CGI; print $q->header( -type => 'text/html',-P3P => 'CP="NOI ADM DEV PS +Ai COM NAV OTRo STP IND DEM" policyref="/w3c/p3p.xml"'); use CGI::Carp qw(fatalsToBrowser carpout); if ( open(LOG,">>errors.log") ) { carpout(LOG); } } 1;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Error decoding XML
by tinita (Parson) on Jan 24, 2005 at 16:27 UTC | |
by ikegami (Patriarch) on Jan 24, 2005 at 16:51 UTC | |
by Hammy (Scribe) on Jan 24, 2005 at 17:23 UTC | |
by ikegami (Patriarch) on Jan 24, 2005 at 17:31 UTC | |
Re: Error decoding XML
by dragonchild (Archbishop) on Jan 24, 2005 at 16:21 UTC | |
Re: Error decoding XML
by gmpassos (Priest) on Jan 24, 2005 at 23:17 UTC | |
Re: Error decoding XML
by inman (Curate) on Jan 25, 2005 at 11:43 UTC |
Back to
Seekers of Perl Wisdom