in reply to Re^3: Need to count the number of entries in a array
in thread Need to count the number of entries in a array
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.
|
|---|