Don't ask to ask, just ask | |
PerlMonks |
Re: Function Prototype Context Conversionby japhy (Canon) |
on Jun 12, 2002 at 20:05 UTC ( [id://173986]=note: print w/replies, xml ) | Need Help?? |
Perhaps you don't know that what the $ prototype does is place scalar(...) around the given argument to the function.
An array evaluated in scalar context returns its size.
_____________________________________________________
In Section
Seekers of Perl Wisdom
|
|