Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


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")

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://74000]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (7)
As of 2024-03-28 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found