Project

General

Profile

Bug #621

mandatory use of Data::Dumper when not needed at all..

Added by Anonymous over 13 years ago. Updated about 11 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
mod_cgi
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

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

History

#1

Updated by moo over 13 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.

#2

Updated by stbuehler about 11 years ago

  • Status changed from Fixed to Invalid

Also available in: Atom