Don't guess. Try it out, or read the documentation for chomp. I've made that mistake before with map and it's a head-scratcher the first two times.
(It returns—depending on the line endings of the file—a bunch of copies of $/.)
Improve your skills with Modern Perl: the free book.
In reply to Re^4: Need to count the number of entries in a array
by chromatic
in thread Need to count the number of entries in a array
by Baffled
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |