open (DATA,"<xxx.txt") || die "Can't open xxx.txt: $!\n"; while(<DATA>) { if (/Start context/ .. /\* Exit context \*/) { print unless /(Start context|\* Exit context \*)/; last if /\* Exit context \*/; } }
In reply to Re: I still can't get only the necessary lines from the file.
by ercparker
in thread I still can't get only the necessary lines from the file.
by sashac88
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |