in reply to Using substr on Hash Keys
TMTOWTDI:
$hash{substr $_, 2} = delete $hash{$_} for keys %hash;
Update: Actually, this is the same solution as jettero wrote above, but I've made it more terse.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using substr on Hash Keys
by jettero (Monsignor) on Sep 10, 2008 at 19:53 UTC | |
by ikegami (Patriarch) on Sep 10, 2008 at 23:37 UTC | |
by jettero (Monsignor) on Sep 11, 2008 at 01:45 UTC | |
by jwkrahn (Abbot) on Sep 10, 2008 at 21:11 UTC | |
by ikegami (Patriarch) on Sep 10, 2008 at 23:38 UTC | |
by jwkrahn (Abbot) on Sep 11, 2008 at 01:13 UTC | |
by ikegami (Patriarch) on Sep 11, 2008 at 01:31 UTC | |
by pc0019 (Acolyte) on Sep 10, 2008 at 20:28 UTC | |
by GrandFather (Saint) on Sep 10, 2008 at 21:04 UTC |