I notice you already got answers on how to tell when it flips or filter out the first/last without retesting, but I wanted to make a note on this specific point of repreating the RE.
my $start= qr/start/; # note the regex's once my $stop= qr/stop/; foreach (grep /$start/ .. /$stop/, @data) { next if /$start/; last if /$stop/; # ....
In reply to Re: flip-flop operator and sequence number
by John M. Dlugosz
in thread flip-flop operator and sequence number
by iakobski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |