Non-destructively:
my %hash2 = map {$_ => $hash{$_}} grep {/^\d+_\d+$/} keys %hash;
In reply to Re: Selecting particular key-value pairs in hashes
by pbeckingham
in thread Selecting particular key-value pairs in hashes
by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |