in reply to Re: How to delete trailing spaces from array elements?
in thread How to delete trailing spaces from array elements?
s/\s+$// for (@arr1);With a for loop in modifier mode, you don't need the parens. The code gets just a little bit tidier that way (IMO of course).
s/\s+$// for @arr1;
|
|---|