in reply to Re: Using Data::Dumpers Sortkeys subroutine
in thread Using Data::Dumpers Sortkeys subroutine

Right, but what's the best way to make this subroutine intelligent enough to distinguish between a has with strings as keys and a hash with numeric values. The problem is Data::Dumper just blindly uses this subroutine for all hashes. I need to build intelligence into it so it knows which sort algorithm to use.

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon";
$nysus = $PM . $MCF;
Click here if you love Perl Monks

  • Comment on Re^2: Using Data::Dumpers Sortkeys subroutine

Replies are listed 'Best First'.
Re^3: Using Data::Dumpers Sortkeys subroutine
by Corion (Patriarch) on Nov 27, 2008 at 07:24 UTC