Your message dated Sat, 2 Apr 2016 12:05:47 +0100
with message-id <[email protected]>
and subject line Re: Bug#611434: clarify $Data::Dumper::Sortkeys
has caused the Debian Bug report #611434,
regarding it is time Data::Dumper printed hashes correctly
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
611434: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=611434
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: perl-doc
Version: 5.10.1-17
Severity: wishlist
File: /usr/share/man/man3/Data::Dumper.3perl.gz

I recommend you add a clarification to

       o   $Data::Dumper::Sortkeys  or  $OBJ->Sortkeys([NEWVAL])

           Can be set to a boolean value to control whether hash keys
           are dumped in sorted order. A true value will cause the keys
           of all hashes to be dumped in Perl's default sort order.

ALL hashes?

$ cat r.pl
use Data::Dumper;
my %h=(qw/a 1 b 2 c 3/);
print keys %h;
print sort keys %h;
print Dumper(%h);
$Data::Dumper::Sortkeys = 1;
print Dumper(%h);
$ perl -lw r.pl
cab
abc
$VAR1 = 'c';
$VAR2 = '3';
$VAR3 = 'a';
$VAR4 = '1';
$VAR5 = 'b';
$VAR6 = '2';

$VAR1 = 'c';
$VAR2 = '3';
$VAR3 = 'a';
$VAR4 = '1';
$VAR5 = 'b';
$VAR6 = '2';



--- End Message ---
--- Begin Message ---
On Sat, Jan 29, 2011 at 01:23:09PM +0200, Niko Tyni wrote:
> On Sat, Jan 29, 2011 at 05:12:17PM +0800, [email protected] wrote:
> > Package: perl-doc
> > Version: 5.10.1-17
> > Severity: wishlist
> > File: /usr/share/man/man3/Data::Dumper.3perl.gz
> > 
> > I recommend you add a clarification to
> > 
> >        o   $Data::Dumper::Sortkeys  or  $OBJ->Sortkeys([NEWVAL])
> > 
> >            Can be set to a boolean value to control whether hash keys
> >            are dumped in sorted order. A true value will cause the keys
> >            of all hashes to be dumped in Perl's default sort order.
> 
> > ALL hashes?
> 
> > print Dumper(%h);
> > $Data::Dumper::Sortkeys = 1;
> > print Dumper(%h);
> 
> You aren't dumping a hash, you're dumping a list of scalar values.
> Quoting the BUGS section:
> 
>    Due to limitations of Perl subroutine call semantics, you cannot pass
>    an array or hash.  Prepend it with a "\" to pass its reference instead.
>    This will be remedied in time, now that Perl has subroutine prototypes.
> 
> $Data::Dumper::Sortkeys works fine when you pass it a hash reference.

Therefore there isn't anything more to do with this bug. Closing.

Dominic.

--- End Message ---

Reply via email to