Good point on the non-scalars though the OP was talking about ... 2 big vars my $a = "10"x10000; ....
If I was dealing with non-scalars and performance was critical, I'd use the temp var.
... Besides being obfuscatory, the XOR method ...
Do you really find it confusing?
Examine what is said, not who speaks.
In reply to Re: Re: Re: Re: swapping vars, two ways, 2 results...
by BrowserUk
in thread swapping vars, two ways, 2 results...
by Sihal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |