Syntactic Confectionery Delight | |
PerlMonks |
Re: Re: What should be returned in scalar context?by Anonymous Monk |
on Dec 02, 2003 at 14:56 UTC ( [id://311632]=note: print w/replies, xml ) | Need Help?? |
The reference still behaves nicely in boolean context, but it contains all the information of the original array.What if the array is empty, how is the reference useful then in boolean context (or do you return undef in that case)?
In Section
Meditations
|
|