We don't bite newbies here... much | |
PerlMonks |
Re: Counting elements in arrayby thezip (Vicar) |
on Jan 29, 2014 at 19:35 UTC ( [id://1072569]=note: print w/replies, xml ) | Need Help?? |
You have (at least) a couple of options: print "Array size is ", scalar(@array), "\n";- or - printf "Array size is %d\n", scalar @array; Your pick. You need to force scalar context, which I explicitly did by using the scalar function. *My* tenacity goes to eleven...
In Section
Seekers of Perl Wisdom
|
|