Ye Olde Fashioned Waye.....
my %newhash; while (my ($k, $v) = each( %hash)) { $k =~ s/\s+$//; $newhash{$k} = $v; } # newhash contains correct key values
In reply to Re: Delete space at the end of a hash element
by space_monk
in thread Delete space at the end of a hash element
by Dr Manhattan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |