in reply to Lost when exchanging values

Here's a famous old chestnut:

$ perl -e'my $c=2; my $d=3; $c^=$d^=$c^=$d; print $c,$d,$/' 32 $
It's worthwhile to run through the bit twiddling by hand and see how that works.

After Compline,
Zaxo