Syntactic Confectionery Delight | |
PerlMonks |
Re: Array in scalar context.by Zaxo (Archbishop) |
on Oct 04, 2003 at 02:52 UTC ( [id://296455]=note: print w/replies, xml ) | Need Help?? |
That should read that you must use the scalar function to find the count in list context... The scalar function simply puts its argument in scalar context, independent of the external context. Your usage is correct, though you would get a surprise if you changed the concatenation dots to commas for efficiency. That would put @foo in list context and you'd get the array contents spilled to the selected handle. After Compline,
In Section
Seekers of Perl Wisdom
|
|