Hammy has asked for the wisdom of the Perl Monks concerning the following question:
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 |