http://qs321.pair.com?node_id=74000


in reply to Re: Sub cannot return an array?
in thread Dereference an array reference

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?

Replies are listed 'Best First'.
Re: Re: Re: Sub cannot return an array?
by tye (Sage) on Apr 20, 2001 at 01:32 UTC

    Exactly.

            - tye (but my friends call me "Tye")