Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Sub cannot return an array?

by dvergin (Monsignor)
on Apr 20, 2001 at 01:25 UTC ( #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
Node Status?
node history
Node Type: note [id://74000]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2020-11-24 18:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?