Bug #621
closedmandatory use of Data::Dumper when not needed at all..
Description
Hello..
Here is the script I'm using :
-------------------Start--------------------
#! C:/Perl/bin/perl.exe
use XML::Parser;
print "<HTML>";
my $file="config.xml";
my $parser = new XML::Parser(Style => 'Tree');
my $tree = $parser->parsefile($file);
print "<b>".$tree->r1r3."</b><br>";
use Data::Dumper;
print Dumper($tree);
print "</HTML>";
exit(0);
-------------------End--------------------
Has you can see, I'm don't really need to use the Dumper function, it was just a way to see the outpout of my parse_file.. The problem is if I comment out those two lines, I get a 500 internal server error..
-------------------Not working Start--------------------
#! C:/Perl/bin/perl.exe
use XML::Parser;
print "<HTML>";
my $file="config.xml";
my $parser = new XML::Parser(Style => 'Tree');
my $tree = $parser->parsefile($file);
print "<b>".$tree->r1r3."</b><br>";
#use Data::Dumper;
#print Dumper($tree);
print "</HTML>";
exit(0);
-------------------Not Working End--------------------
Should I consider this as a bug, or is there something else ?
Thanks
Antony
-- passemar
Updated by moo over 18 years ago
- Status changed from New to Fixed
- Resolution set to invalid
i can't see your code that produce http header ... the dumper may produce multiple \r\n which makes the 1st segment looks like a http header.
Also available in: Atom