![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re: why the value of count will be change?by LanX (Sage) |
on May 08, 2018 at 23:51 UTC ( #1214241=note: print w/replies, xml ) | Need Help?? |
Because Perl does call by reference The elements in @_ are aliases, you should copy them first. From perlglossary
Cheers Rolf
PS: And for god's sake, please use indentation!
In Section
Seekers of Perl Wisdom
|
|