in reply to Using substr on Hash Keys
for my $k (keys %hash) { my $v = delete $hash{$k}; my $t = transform($k); $hash{$t} = $v; }
UPDATE: woops. (probably a /msg would have done the trick?)
UPDATE: no, no offense at all.
-Paul
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using substr on Hash Keys
by mr_mischief (Monsignor) on Sep 10, 2008 at 19:12 UTC |