Perl Monk, Perl Meditation | |
PerlMonks |
Re: Re: Sub cannot return an array?by dvergin (Monsignor) |
on Apr 20, 2001 at 01:25 UTC ( [id://74000]=note: print w/replies, xml ) | Need Help?? |
Great! Very helpful. So if I have this right,
the list/scalar context provided by the
context in which the sub is called is being applied
inside the subroutine at the point that the
return expression (whether specified with
a 'return' or not)
is being evaluated. (Not applied to the
result of the sub after it springs to life at the point
the sub is called.) Yes?
In Section
Seekers of Perl Wisdom
|
|