Do you know where your variables are? | |
PerlMonks |
Re: Ampersand changes behavior of subroutineby haukex (Archbishop) |
on Feb 08, 2019 at 19:47 UTC ( [id://1229645]=note: print w/replies, xml ) | Need Help?? |
I've noticed that my subroutine behaves differently depending on if I call it with an "&" character or not. Although the others have already explained that in this case it's because of the way sort works, I just wanted to briefly address the more general question about calling subs with and without an ampersand: see this node for an explanation.
In Section
Seekers of Perl Wisdom
|
|