in reply to Re: Changing array by changing $_?
in thread Changing array by changing $_?
Thank you! Now it makes perfect sense. I am actually in the habit of using
foreach my $variable (@array) { doingStuffWith($variable); }
I guess that also prevents the elements from being changed. Thanks again for showing me the perl 'magic'.
20081016 Janitored by Corion: Closed code tag, as per Writeup Formatting Tips
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Changing array by changing $_?
by gone2015 (Deacon) on Oct 13, 2008 at 12:41 UTC | |
Re^3: Changing array by changing $_?
by ikegami (Patriarch) on Oct 13, 2008 at 14:01 UTC | |
Re^3: Changing array by changing $_?
by GrandFather (Saint) on Oct 13, 2008 at 20:36 UTC | |
Re^3: Changing array by changing $_?
by busunsl (Vicar) on Oct 13, 2008 at 12:42 UTC |