in reply to Selecting particular key-value pairs in hashes
Non-destructively:
my %hash2 = map {$_ => $hash{$_}} grep {/^\d+_\d+$/} keys %hash;
pbeckingham - typist, perishable vertebrate.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Selecting particular key-value pairs in hashes
by Aristotle (Chancellor) on Sep 18, 2004 at 20:34 UTC |
In Section
Seekers of Perl Wisdom