in reply to Selecting particular key-value pairs in hashes
Doesn't work in Perl versions before about 5.002, but should work in anything released in the last half dozen years.delete @hash{grep !/\d+_\d+/, keys %hash};
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Selecting particular key-value pairs in hashes
by gaal (Parson) on Sep 18, 2004 at 07:24 UTC | |
|
Re^2: Selecting particular key-value pairs in hashes
by kiat (Vicar) on Sep 18, 2004 at 03:07 UTC | |
by TedPride (Priest) on Sep 18, 2004 at 04:50 UTC |