in reply to I still can't get only the necessary lines from the file.
open (DATA,"<c://xxx.txt") || die "Can't open xxx.txt: $!\n"; while(<DATA>) { if (/Start context/ .. /\* End Context \*/) { print unless /(Start context|\* Exit context \*)/; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: I still can't get only the necessary lines from the file.
by sashac88 (Beadle) on Jul 01, 2004 at 07:19 UTC | |
by gaal (Parson) on Jul 01, 2004 at 10:00 UTC |