|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Re^3: passing variables between subroutinesby revdiablo (Prior) |
| on Jan 16, 2006 at 13:57 UTC ( [id://523570]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
It's best to avoid passing non-scalars around that way I have to say I disagree with that as stated. Certainly, there are many cases where passing a reference is preferable, but it depends on the situation. My default is to pass a simple list and switch to passing references when there's a clear need. I'd even go so far as to say it's best to err on the side of not making references when they're not needed.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||