in reply to Re: Strip spaces in hash
in thread Strip spaces in hash
%hash = map { my $s=$_; $s=~s/\s+//g; $s } %hash;
or
use List::MoreUtils qw( apply ); %hash = apply { s/\s+//g } %hash;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Strip spaces in hash
by AnomalousMonk (Archbishop) on Dec 09, 2009 at 19:26 UTC |