RoShamBoDump( \%myhash ); sub RoShamBoDump { my $orig = shift; my @keys = qw/ ro sham bo /; my %new; @new{ @keys } = @{ $orig }{ @keys }; use Data::Dumper; print Data::Dumper->new([\%new])->Useqq(1)->Dump, "\n"; }
In reply to Re: Output only certain fields from a hash using the Data::Dumper ( different hash, a subroutine)
by Anonymous Monk
in thread Output only certain fields from a hash using the Data::Dumper
by MrSnrub
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |