s/\s+$/ / for @array; [download]
In reply to Re^2: Replacing whitespaces with a regex by choroba in thread Replacing whitespaces with a regex by Dr Manhattan