in reply to Re^2: 'my' Variable life cycle
in thread 'my' Variable life cycle
If you don't return that variable somehow from the function, Perl will reclaim the memory when the function returns. If you do return that variable somehow from the function, you probably don't want to release its memory.
|
|---|