Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: why the value of count will be change?by LanX (Saint) |
on May 08, 2018 at 23:51 UTC ( [id://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
|
|