%hash = map { my $s=$_; $s=~s/\s+//g; $s } %hash;
or
use List::MoreUtils qw( apply ); %hash = apply { s/\s+//g } %hash;
In reply to Re^2: Strip spaces in hash
by ikegami
in thread Strip spaces in hash
by kalyanrajsista
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |