in reply to Processing lines after a pattern in a while loop
Cheers - L~Rmy $flag = 0; while ( <INPUT> ) { chomp; if ( /pattern/ ) { $flag = 1; next; } next if ! $flag; # what you want to do goes here }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Processing lines after a pattern in a while loop
by tilly (Archbishop) on Apr 05, 2004 at 17:47 UTC | |
|
Re: Re: Processing lines after a pattern in a while loop
by talexb (Chancellor) on Apr 05, 2004 at 17:58 UTC | |
|
Re: Re: Processing lines after a pattern in a while loop
by Happy-the-monk (Canon) on Apr 05, 2004 at 16:49 UTC |