in reply to Help Matching Sections of a file
my $port = "1234"; open FILE, blah blah blah or die; while (<FILE>) { print if /Port\s+$port/ .. /^#---/; } close FILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Help Matching Sections of a file
by eXile (Priest) on Apr 05, 2004 at 02:57 UTC | |
by TilRMan (Friar) on Apr 05, 2004 at 09:57 UTC | |
by Elijah (Hermit) on Apr 05, 2004 at 15:17 UTC | |
by TilRMan (Friar) on Apr 05, 2004 at 16:26 UTC |