in reply to hash slice ? No thanks, I'm about to return...
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: hash slice ? No thanks, I'm about to return...
by leriksen (Curate) on Feb 20, 2005 at 00:39 UTC |