in reply to interchanging variables the tough way
It will probably perform worse than the other suggestions though...$a=1,$b=2,$c=3,$d=4,$e=5; ($a,$b,$c,$d,$e) = sub {push@_,shift;return@_}->($a,$b,$c,$d,$e); print "\$a=$a,\$b=$b,\$c=$c,\$d=$d,\$e=$e\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
interchanging variables the tough way
by agoth (Chaplain) on Aug 31, 2000 at 13:39 UTC | |
RE (tilly) 1 (possibilities): interchanging variables the tough way
by tilly (Archbishop) on Aug 31, 2000 at 14:43 UTC | |
by tilly (Archbishop) on Aug 31, 2000 at 16:08 UTC |