in reply to •Re: Selecting particular key-value pairs in hashes
in thread Selecting particular key-value pairs in hashes

Thanks, merlyn!

With that, I can now proceed with my coding.

  • Comment on Re^2: Selecting particular key-value pairs in hashes

Replies are listed 'Best First'.
Re^3: Selecting particular key-value pairs in hashes
by TedPride (Priest) on Sep 18, 2004 at 04:50 UTC
    foreach (keys %hash) { delete($hash{$_}) if ($_ !~ /\d+_\d+/); }
    Going to see if merlyn's example works on my version of Perl... Oh neat, it does. I think his trumps mine by a bit.