< Previous
Next >

: It is Fun With Perl... yeah!

$a^=$b^=$a^=$b

I thought it was impossible to swap two variables without using a third variable, but there it is. I forgot who posted this to the Fun With Perl list, but I am eternally grateful to them.


[Main]

Unless otherwise noted, all content licensed by Leonard Richardson
under a Creative Commons License.