Actually, chomp will operate on an array if you ask it nicely:
chomp(@a);
Try out this one-liner if you like:
perl -e '@a=("a","b","c\n");chomp @a;$"="-";print "[@a]\n"'
In reply to Re: Re: Reading a Line into an Array
by grinder
in thread Reading a Line into an Array
by scrubber
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |