Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Why does Perl allow you to return array references to variables in local scope?

by moritz (Cardinal)
on Oct 16, 2013 at 12:20 UTC ( #1058432=note: print w/replies, xml ) Need Help??


in reply to Why does Perl allow you to return array references to variables in local scope?

Perl does not allocate my-variables on the stack, but rather on the heap. It uses automatic reference counting to deallocate the memory when the number of references that point to a value drops to zero.

  • Comment on Re: Why does Perl allow you to return array references to variables in local scope?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1058432]
help
Chatterbox?
[harishnv]: have a question
[shmem]: good for you. Is it a secret?

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2018-02-19 16:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (266 votes). Check out past polls.

    Notices?