HEAD . . . TAIL and ends with suppose America 331If your file looked something like what is above, you could do the following:
--ericmy $read = 1; my @output; foreach my $line (@array){ if($line =~ /HEAD/){ $read=0; } elsif($line =~ /TAIl/){ $read=1; } push @output, $line if $read; }
In reply to Re: Mactching arrays and reg. exp.
by eak
in thread Mactching arrays and reg. exp.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |