in reply to Re: Confused by reference sample code
in thread Confused by reference sample code
Many thanks - I must admit that the difference between 'my' inside a loop and outside in this context had elluded me (the distinction between 'new variable' and 'same variable' is somewhat blurred in this context).
Question: if the memory allocated to the hash had not been passed by ref. to the array, would perl have released it's memory?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Confused by reference sample code
by ikegami (Patriarch) on Mar 28, 2006 at 22:32 UTC |