It uses the @array, which makes the code more readable, and PERL's great map function for 1 liners.map {s/\s+$/ /} @array;
In reply to Re: Replacing whitespaces with a regex
by ISAI student
in thread Replacing whitespaces with a regex
by Dr Manhattan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |