New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistency in Data::Dumper integer representations #10174
Comments
From @pjscottThe quoting of integers by Data::Dumper has changed over the years; $ perl -MData::Dumper -e 'print Dumper $_**2 for 1..10' Whatever the result is supposed to be, I'm fairly sure it's not that. $ perl -MData::Dumper -e 'print Dumper $_ for 4**2,5**2,16,25' Pure Perl mode does not quote them, which would be my vote for the $ perl -V Platform: Characteristics of this binary (from libperl): |
From @demerphqOn 14 February 2010 03:03, Peter Scott <perlbug-followup@perl.org> wrote:
The thing is that the XS mode is supposed to be fast, and what you IMO, use of the "Useqq" option is the correct way to get consistent cheers, -- |
The RT System itself - Status changed from 'new' to 'open' |
From @demerphqOn 14 February 2010 20:06, Dave Mitchell <davem@iabyn.com> wrote:
From the latest DD on cpan: /* Changes in 5.7 series mean that now IOK is only set if scalar is Yves -- |
From @demerphqOn 15 February 2010 16:35, demerphq <demerphq@gmail.com> wrote:
Although I note that it now does a fair bit more than it used to. Yves -- |
From @TuxOn Mon, 15 Feb 2010 16:35:35 +0100, demerphq <demerphq@gmail.com> wrote:
And even Useqq is not convenient enough :) --8<--- dd.pl use Data::Dumper; my $hash = { $Data::Dumper::Sortkeys = 1; $Data::Dumper::Useqq = 0; $Data::Dumper::Useqq = 1; $ perl dd.pl With or without binmode :utf8 or -C3, I cannot make Data::Dumper I can also imagine Useqq being split for use to keys and/or values -- |
From @demerphqOn 15 February 2010 17:28, H.Merijn Brand <h.m.brand@xs4all.nl> wrote:
I think there is a comment about that in the latest versions code. Yves -- |
From @iabynOn Sun, Feb 14, 2010 at 07:06:47PM +0000, Dave Mitchell wrote:
At a slight tangent to the original bug, this appears to be a mistake in SETn( result ); something to fix up post 5.12 -- |
From @iabynOn Mon, Feb 15, 2010 at 05:32:59PM +0100, demerphq wrote: Assming that the bug in pp_pow gets fixed, then the only issue with $ p -MData::Dumper -e'print Dumper 1, 2.2' which presumably could be regarded as an enhancement rather than a bug. -- |
From @nwc10On Wed, Feb 24, 2010 at 02:01:34PM +0000, Dave Mitchell wrote:
Mmm, that likely would be my mistake. But it being there didn't affect the original problem that we were trying to Nicholas Clark |
From @jkeenanOn Mon Feb 15 07:37:18 2010, demerphq wrote:
I reviewed this older ticket this evening. The somewhat peculiar ########## $ perl -MData::Dumper -e '$Data::Dumper::Useqq=1;print Dumper $_**2 for $ perl -MData::Dumper -e 'print Dumper $_ for 4**2,5**2,16,25' $ perl -MData::Dumper -e '$Data::Dumper::Useqq=1;print Dumper $_ for The discussion, as these things tend to do, wandered off from the I recommend that, unless someone feels strongly enough about this issue Thank you very much. |
From @demerphqOn 24 February 2010 15:20, Dave Mitchell <davem@iabyn.com> wrote:
Try making it dump an integer that has been stringified. (As James Yves -- |
From @iabynOn Wed, Feb 20, 2013 at 03:03:44AM +0100, demerphq wrote:
I don't follow. Surely if a string has just one of the IOK, NOK, POK flags -- |
From @demerphqOn 24 February 2013 01:24, Dave Mitchell <davem@iabyn.com> wrote:
$ perl -MDevel::Peek -e'my $i= 0; Dump($i); print "$i"; Dump($i);' -- |
From @iabynOn Sun, Feb 24, 2013 at 06:47:05AM +0100, demerphq wrote:
But my point is what to do with a number that *hasn't* been stringified. $ p -MData::Dumper -e'print Dumper 1, 2.2' Do you regard that output as best and consistent? And if not, how would $VAR1 = 1; If on the other hand the vars happen to have been stringified in the -- |
From @demerphqOn 24 February 2013 13:39, Dave Mitchell <davem@iabyn.com> wrote:
The only reason that I can think that someone might do this cheers, -- |
Migrated from rt.perl.org#72794 (status was 'open')
Searchable as RT72794$
The text was updated successfully, but these errors were encountered: