in reply to Using substr on Hash Keys

Pretty sure about the only way to do it (roughly) is like so:
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
    Update: It's a nice solution now that it's been updated, jettero. Sorry if I offended you by posting.

    I don't see where you're assigning $v to $hash{$t} there.