in reply to array with s///g command
Or, if you want to be brief...
# assuming @array1 contains the values to change. my @array2 = @array1; @array2 = map { s/\s//g; $_ } @array2; print @array2;
Gary Blackburn
Trained Killer
In Section
Seekers of Perl Wisdom