in reply to Re: How would I do an inplace edit, prepending
in thread How would I do an inplace edit, prepending '~foo' to every key of a hash? (was: How would I do an inplace edit, prepending)
%hash = map { ("~foo$_" => delete $hash{$_}) } keys %hash;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: How would I do an inplace edit, prepending
by extremely (Priest) on Feb 10, 2001 at 03:34 UTC |