That way you know you won't accidentally conflict with any globals of the same name. And it will pass the handy-dandy spell-checker known as strict.foreach my $oldkey (keys %fdat) { if ( (my $newkey = $oldkey) =~ s/^redirect_//) { $fdat{$newkey} = $fdat{$oldkey}; } }
In reply to Re (tilly) 1: Regexs on Hash Keys
by tilly
in thread Regexs on Hash Keys
by Maclir
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |