Skip Menu |

This queue is for tickets about the Data-Dumper-Simple CPAN distribution.

Report information
The Basics
Id: 66098
Status: open
Priority: 0/
Queue: Data-Dumper-Simple

People
Owner: Nobody in particular
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Does not understand Dumper with no parens
Data::Dumper::Simple needs parens around it's Dumper() function. use strict; use warnings; use Data::Dumper::Simple; print Dumper 42; __END__ Name "main::Dumper" used only once: possible typo at /Users/schwern/tmp/test.plx line 4. print() on unopened filehandle Dumper at /Users/schwern/tmp/test.plx line 4. I don't know if it's worth fixing, but I figured I'd report it.
Try adding a unary plus before the Dump to force disambiguation (+Dumper) Also, check out my Data::Dumper::Names. Unlike ::Simple, it's not a source filter. It's a touch more limited and you have to pass references, but it works well. Cheers, Ovid On Wed Feb 23 19:03:56 2011, MSCHWERN wrote: Show quoted text
> Data::Dumper::Simple needs parens around it's Dumper() function. > > use strict; > use warnings; > use Data::Dumper::Simple; > print Dumper 42; > __END__ > Name "main::Dumper" used only once: possible typo at > /Users/schwern/tmp/test.plx line 4. > print() on unopened filehandle Dumper at /Users/schwern/tmp/test.plx > line 4. > > I don't know if it's worth fixing, but I figured I'd report it.
Subject: Re: [rt.cpan.org #66098] Does not understand Dumper with no parens
Date: Thu, 24 Feb 2011 17:21:33 +1100
To: bug-Data-Dumper-Simple [...] rt.cpan.org
From: Michael G Schwern <schwern [...] pobox.com>
I'm not actually using DDS. There's a conflict between perl5i and DDS (actually between source filters and Devel::Declare) and I happened to notice them. Just passing it on. A Devel::Declare/PPI based magic Data::Dumper would be much safer than DDS or DDN, fwiw. On 2011.2.24 4:58 PM, Curtis 'Ovid' Poe via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=66098 > > > Try adding a unary plus before the Dump to force disambiguation (+Dumper) > > Also, check out my Data::Dumper::Names. Unlike ::Simple, it's not a source filter. It's a touch > more limited and you have to pass references, but it works well. > > Cheers, > Ovid > > On Wed Feb 23 19:03:56 2011, MSCHWERN wrote:
>> Data::Dumper::Simple needs parens around it's Dumper() function. >> >> use strict; >> use warnings; >> use Data::Dumper::Simple; >> print Dumper 42; >> __END__ >> Name "main::Dumper" used only once: possible typo at >> /Users/schwern/tmp/test.plx line 4. >> print() on unopened filehandle Dumper at /Users/schwern/tmp/test.plx >> line 4. >> >> I don't know if it's worth fixing, but I figured I'd report it.
-- You are wicked and wrong to have broken inside and peeked at the implementation and then relied upon it. -- tchrist in <31832.969261130@chthon>
On Thu Feb 24 01:21:48 2011, schwern@pobox.com wrote: Show quoted text
> I'm not actually using DDS. There's a conflict between perl5i and DDS > (actually between source filters and Devel::Declare) and I happened to > notice > them. Just passing it on. > > A Devel::Declare/PPI based magic Data::Dumper would be much safer than > DDS or > DDN, fwiw.
Data::Dumper::Names only relies on PadWalker for its magic. Do you *really* think this is "much safer" than Devel::Declare? That seems like quite a stretch :)