Data-Dump-SortKeys
view release on metacpan or search on metacpan
A custom hook which is called with ($hashref) when dumping a hash, to
get the sorted hash keys. It should return a list containing the
sorted keys.
$Data::Dump::SortKeys::REMOVE_PRAGMAS
If set to 1, then pragmas at the start of coderef dump will be
removed. Coderef dump is produced by B::Deparse and is of the form
like:
sub { use feature 'current_sub', 'evalbytes', 'fc', 'say', 'state', 'switch', 'unicode_strings', 'unicode_eval'; $a <=> $b }
If you want to dump short coderefs, the pragmas might be distracting.
You can turn turn on this option which will make the above dump
become:
sub { $a <=> $b }
Note that without the pragmas, the dump might be incorrect.
LIMITATIONS
lib/Data/Dump/SortKeys.pm view on Meta::CPAN
=item $Data::Dump::SortKeys::SORT_KEYS
A custom hook which is called with ($hashref) when dumping a hash, to get the
sorted hash keys. It should return a list containing the sorted keys.
=item $Data::Dump::SortKeys::REMOVE_PRAGMAS
If set to 1, then pragmas at the start of coderef dump will be removed. Coderef
dump is produced by L<B::Deparse> and is of the form like:
sub { use feature 'current_sub', 'evalbytes', 'fc', 'say', 'state', 'switch', 'unicode_strings', 'unicode_eval'; $a <=> $b }
If you want to dump short coderefs, the pragmas might be distracting. You can
turn turn on this option which will make the above dump become:
sub { $a <=> $b }
Note that without the pragmas, the dump might be incorrect.
=back
( run in 0.444 second using v1.01-cache-2.11-cpan-88abd93f124 )