in reply to
How swap works
Most probably the same way in which
$a=$a+1;
works:
Comment on
Re: How swap works
Download
Code
In Section
Seekers of Perl Wisdom