The caller forces context on the return. The return value is the result of the evaluation (in the context of the caller) of the last expression in a subroutine (or the expression given to return).
So..
See perlop. Ah, and 'fox' gets assigned to '$y' </nitpick> ;-)
In reply to Re^3: most appropriate return data type
by shmem
in thread most appropriate return data type
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |