Project

General

Profile

Actions

Bug #621

closed

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

Added by Anonymous about 18 years ago. Updated over 15 years ago.

Status:
Invalid
Priority:
Normal
Category:
mod_cgi
Target version:
ASK QUESTIONS IN Forums:

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

Actions #1

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

Actions #2

Updated by stbuehler over 15 years ago

  • Status changed from Fixed to Invalid
Actions

Also available in: Atom