in reply to Re: Reading in Block
in thread Reading in Block

Forgive me for being picky, but I don't see a flip-flop operator in this example. The flip-flop consists of an if which has two tests joined by a range. See Range Operators in perldoc perlop.

if ( <some cond or re> .. <another test or re> ) { ... }

As Occam said: Entia non sunt multiplicanda praeter necessitatem.

Replies are listed 'Best First'.
Re^3: Reading in Block
by anonymized user 468275 (Curate) on Feb 24, 2011 at 16:57 UTC
    I never said there was a Perl flip-flop operator. OK the OP did say flip-flop matching which implies yet a third thing to be just as picky. But I presented $x = !$x in my code suggestion as the simplest implementation in Perl of a flip-flop I can think of, irrespective of what it's used for.

    One world, one people