From perldoc perlsub: The return value of a subroutine is the value of the last expression evaluated by that sub...
The value of an assignment operation in list context is generally the value(s) being assigned. Thus, when you're assigning a list to something, that's the value of the assignment and therefore that's the return value of the subroutine.
Cheers,
Ovid
New address of my CGI Course.
In reply to Re: hash slice ? No thanks, I'm about to return...
by Ovid
in thread hash slice ? No thanks, I'm about to return...
by leriksen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |