in reply to removing the spaces from keys of a complex hash
sub hash_remove_key_space { my $in_hash = shift; %$in_hash = map { ( my $key = $_ ) =~ s/\s+//g; ( $key => $in_hash->{ $_ } ) } keys %$in_hash; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: removing the spaces from keys of a complex hash
by samtregar (Abbot) on May 07, 2008 at 16:49 UTC |