Skip Menu |
 

This queue is for tickets about the Data-Dump-Streamer CPAN distribution.

Report information
The Basics
Id: 41620
Status: resolved
Priority: 0/
Queue: Data-Dump-Streamer

People
Owner: Nobody in particular
Requestors: ambrus [...] math.bme.hu
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 1.0
  • 1.01
  • 1.02
  • 1.03
  • 1.04
  • 1.05
  • 1.06
  • 1.07
  • 1.08
  • 1.09
  • 1.10
  • 1.11
  • 1.12
  • 1.14
  • 2.00
  • 2.01
  • 2.02
  • 2.03-30
  • 2.04-34
  • 2.05-36
  • 2.06-38
  • 2.07-39
  • 2.08-40
Fixed in: 2.09



Subject: word plus newline for hash key displayed wrong (Data::Dump::Streamer bug)
Date: Thu, 11 Dec 2008 07:45:05 +0100
To: bug-Data-Dump-Streamer [...] rt.cpan.org
From: "Zsbán Ambrus" <ambrus [...] math.bme.hu>
Download (untitled) / with headers
text/plain 334b
Hello! Data::Dump::Streamer displays hash keys that consist of a word and a newline wrong. This was very confusing when I actually debugged a program that had the newline there as an error. $ perl -we 'use Data::Dump::Streamer; Dump({"a\n", "b"});' $HASH1 = { a => 'b' }; $ (By the way, DDS still displays !1 wrong too.) Ambrus
Subject: Re: [rt.cpan.org #41620] word plus newline for hash key displayed wrong (Data::Dump::Streamer bug)
Date: Tue, 16 Dec 2008 12:30:51 +0100
To: bug-Data-Dump-Streamer [...] rt.cpan.org
From: "Zsbán Ambrus" <ambrus [...] math.bme.hu>
Download (untitled) / with headers
text/plain 715b
Here's a patch for the newline in hash key bug. I hope it doesn't break anything. Apply with patch -p1 when you're inside the Data-Dump-Streamer-2.08-40 directory. Ambrus --- Data-Dump-Streamer-2.08-40/lib/Data/Dump/Streamer.pm 2007-12-22 01:37:55.000000000 +0100 +++ Data-Dump-Streamer/lib/Data/Dump/Streamer.pm 2008-12-16 12:20:45.000000000 +0100 @@ -814,9 +814,9 @@ sub _quotekey { my $key = shift; if (!defined($key) or $key eq '') { return '""' - } elsif ($key=~$numeric_rex or $key =~ /^-?[A-Za-z_]\w*$/) { + } elsif ($key=~$numeric_rex or $key =~ /^-?[A-Za-z_]\w*\z/) { return $key } else { _qquote($key); }
thanks resolved. sorry it took so long


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.