develooper Front page | perl.perl5.porters | Postings from June 2001

Re: Data::Dumper sorting

Gurusamy Sarathy
June 28, 2001 07:41
Re: Data::Dumper sorting
Message ID:
On Thu, 28 Jun 2001 09:12:15 CDT, wrote:
>What would it take to get Data::Dumper to sort the keys in hashes that it
>If I patched it to do so, would you roll it in?
>I CONSTANTLY am using Data::Dumper and it would make my life so much
>easier to have the hash keys sorted....

I seem to be getting this question at least once a month now, so here
goes my canned reply.

  1. I don't maintain Data::Dumper independently anymore.  Patches
     should go to
  2. If you make a patch for this:
      * be sure to make the behavior optional (sorting forces all
        the keys to be enumerated first, which increases the memory
	requirement for large hashes)
      * be sure to patch both the perl the XS code
      * be sure to patch the documentation
      * be sure to add tests


Sarathy Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About