zigster has asked for the wisdom of the Perl Monks concerning the following question:
If I declare a variable to have block scope and then pass a reference to that variable out of the block is that will the local variable (and so the reference) be trashed? I am _really_ spending too much time writting C++ these days. I am getting my mind into a mess over this could someone clear this up for me and explain simply how perl handles scoping in this context.
What I am actually trying to do is create an array of arrays or in truth an array of array references.
Thanks for your help and sorry if this is as dumb a question as it sounds to me, but I really cant get my head around it today.
--
Zigster
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Question regarding perl memory management
by mirod (Canon) on Feb 05, 2001 at 19:06 UTC | |
|
Re: Question regarding perl memory management
by arhuman (Vicar) on Feb 05, 2001 at 19:19 UTC |