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 reply to Re: Re: What should be returned in scalar context?
by Anonymous Monk
in thread What should be returned in scalar context?
by tilly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |