sub hash_remove_key_space { my $in_hash = shift; %$in_hash = map { ( my $key = $_ ) =~ s/\s+//g; ( $key => $in_hash->{ $_ } ) } keys %$in_hash; }
In reply to Re: removing the spaces from keys of a complex hash
by jwkrahn
in thread removing the spaces from keys of a complex hash
by gwhite
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |