There was a thread on that a short time ago. Look up Range Operator in Perlop, and do a super search on flip-flop and variations for the past couple weeks.while (<>) { chomp if (my $num= /^DESCRIPTION$/ .. /^ENDDESCRIPTION/); next if $num==0 || $num =~ /E/; # skip endpoints print; }
—John
In reply to Re: Removing linefeeds from part of a file
by John M. Dlugosz
in thread Removing linefeeds from part of a file
by Desdinova
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |