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?
In reply to Re^2: Confused by reference sample code
by Melly
in thread Confused by reference sample code
by Melly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |