in reply to Re: Anyone use "xor" in conditionals?
in thread Anyone use "xor" in conditionals?
I'm not sure that this is potentially more efficient in Perl (probably less efficent?), but is an idiom I remember from my Amiga asm days. Personally, I also think it's easier to see what's going on too :)my $flipflop = 1; for my $row_ref ( @$ary ) { ... $flip_flop = 1 - $flipflop; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Anyone use "xor" in conditionals?
by Cody Pendant (Prior) on Jul 14, 2003 at 11:24 UTC | |
by jeffa (Bishop) on Jul 14, 2003 at 13:51 UTC | |
by Abigail-II (Bishop) on Jul 14, 2003 at 14:23 UTC |