Problems? Is your data what you think it is? | |
PerlMonks |
Re: How swap worksby dave_the_m (Monsignor) |
on Jul 11, 2012 at 14:06 UTC ( [id://981122]=note: print w/replies, xml ) | Need Help?? |
In the case where the same variable appears on both sides of the assignment, perl makes a temporary copy of all the values of the RHS before performing the assignment.
Dave.
In Section
Seekers of Perl Wisdom
|
|