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


in reply to simple printing question

Your usage is forcing @array into scalar context which returns the number of elements in the array.

~linux> perl -e '@array = 5..9; push @array,10; print scalar @array;'
Same thing. There are some excellent books you should read in order to learn Perl. Trial and error will only get you so far and will contribute to both confusion and bad habits. Read Effective Perl Programming to eradicate these problems sooner than later.

Celebrate Intellectual Diversity