if you don't want to dig into regular expressions (that funny /\s+$//gms stuff) yourself, you might try this approach:
use Text::Trim; my @strings2trim = ("yo ", " boo"); trim(@strings2trim);
In reply to Re^3: How to delete trailing spaces from array elements?
by mart
in thread How to delete trailing spaces from array elements?
by rcu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |