![]() |
|
P is for Practical | |
PerlMonks |
Re: Two variables changed by trby hippo (Archbishop) |
on Jul 03, 2024 at 18:36 UTC ( [id://11160355]=note: print w/replies, xml ) | Need Help?? |
foreach aliases into the list rather than copying. As you have 2 nested loops over the same array, half the time your two lexicals are aliases for the same item in the array. 🦛
In Section
Seekers of Perl Wisdom
|
|