![]() |
|
go ahead... be a heretic | |
PerlMonks |
Re: Return value from functionby bloonix (Monk) |
on Jul 12, 2007 at 17:35 UTC ( #626286=note: print w/replies, xml ) | Need Help?? |
In most times it's better to pass references between functions, otherwise it would copy the data and if the hash or array is too big it blows your memory away. The other thing is that if you know that the function manipulate the data and you need the original then you should pass a copy.
In Section
Seekers of Perl Wisdom
|
|