scalar(bar()) calls bar in scalar context, thus bar's return() is in scalar context and is equivelant to return scalar(bam()), which means bam's return is equivelant to return scalar(baz(),zab()), which means each of baz() and zab() are called in scalar context and the result of the last one is returned.
In reply to Re: Re^5: Function Prototypes and Array vs. List (Pt. 2)
by Anonymous Monk
in thread Function Prototypes and Array vs. List (Pt. 2)
by tadman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |