http://www.perlmonks.org?node_id=848056


in reply to Re^2: Counting positive numbers
in thread Counting positive numbers

Ah, duh. I should learn to read questions correctly. Having a number as the first line of input telling how many lines the input consists of is so not needed in Perl, that I just didn't pick up on that.