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 $ [download]
After Compline,Zaxo