Warning: jptxs has recently completed Programming Perl and the knowledge is still settling : )
From a performance standpoint, is there any reason at all to pass anything but a reference into a subroutine? I mean, if you just end up clogging up more memory with the copied scaler/array (I take it for granted at this point hashes should be passed around as refs), can there be a situation where it would be better to pass an actual variable than a reference?
I'm sorry if this question is too broad - if so, just let me know. Just trying to get it all right as I can : )
-- I'm a solipsist, and so is everyone else. (think about it)
In reply to passing refs to subs by jptxs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |