use strict; my %hash = ( one => 'blah', two => 'echo', thr => 'aaaak', ); foreach my $key (keys %hash) { $hash{"~foo".$key} = $hash{$key}; delete $hash{$key}; } use Data::Dumper; print Dumper(\%hash);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How would I do an inplace edit, prepending
by japhy (Canon) on Feb 09, 2001 at 05:43 UTC | |
by extremely (Priest) on Feb 10, 2001 at 03:34 UTC |