in reply to Exchanging Variables
It should be clear by now, but for completeness sake I add
This shows that the whole construct works also for more than one element.($one, $two, $three, $four) = ($three, $one, $four, $two); # and array slicing my @arr = qw/one two three four/; @arr = @arr[2,0,3,1];
-- Hofmator
|
|---|