[Re-sending because my first reply went only to the user, not to the list. You have my apologies.]
On Mon, 14 Oct 2002 16:22:21 -0400, iudicium ferat wrote: >On 10/14/02 2:47 PM, "Bart Lateur" <[EMAIL PROTECTED]> wrote: > >> On Mon, 14 Oct 2002 17:34:19 +0100, Simon Cozens wrote: >> >>> This is what the flip-flop operator is for. > > >Is > > $. > >The flip-flop operator? I cannot any flip-flop operator. I think you're looking for scalar ".." It's under "Range Operators" in perldoc perlop. Here are the first few examples: > if (101 .. 200) { print; } # print 2nd hundred lines > next line if (1 .. /^$/); # skip header lines > s/^/> / if (/^$/ .. eof()); # quote body Basically, "do something from the time the first value is true until the second value is true". csw -- /¯\ \ / ASCII RIBBON CAMPAIGN X Against HTML Mail and News / \