in reply to Re: Re: Re: swapping vars, two ways, 2 results...
in thread swapping vars, two ways, 2 results...

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.

  • Comment on Re: Re: Re: Re: swapping vars, two ways, 2 results...