Don't forget he wanted the lines printed too, and since you don't need the found values returned, you can add a ?: flag at the start.map { s/(?:^\s+|\s+$)//g; print "$_\n"; } @phrase;
In reply to Re: chomp not working in array
by TedPride
in thread chomp not working in array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |