in reply to Replacing whitespaces with a regex
orfor ( @array ) { s/\s\s+$/ / }
since essentially you are testing all the words to see if they fit the pattern anyhow.s/\s\s+$/ / for @array;
|
---|
In Section
Seekers of Perl Wisdom
in reply to Replacing whitespaces with a regex
orfor ( @array ) { s/\s\s+$/ / }
since essentially you are testing all the words to see if they fit the pattern anyhow.s/\s\s+$/ / for @array;
|
---|