|
-
Oct 17th, 2001, 08:07 AM
#1
Thread Starter
Addicted Member
selecting between records
Using perl, I want to pick up only the records between Start and Finish in INFILE:
i.e
Start
AAH
BBH
CCH
Finish
I am using the following code but this only excludes Start and writes everything else to output.txt ?
my $sField = "Start";
foreach $_ (<INFILE> ) {
if ($_ !~ $sField) {
print OUTFILE;
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|