in reply to
Replacing whitespaces with a regex
Just do
$words =~ s/\s\s+$/ /;
[download]
whithout any
if
. If there is multiple whitespace, it will be replaced, if not, nothing happens.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Comment on
Re: Replacing whitespaces with a regex
Select
or
Download
Code
In Section
Seekers of Perl Wisdom