misba has asked for the wisdom of the Perl Monks concerning the following question:
Please enlighten me with how to continue reading lines from the file inside if condition. Appreciate ur help. Thanks.while($line=<FH>) { if($line=~ /$SearchString/) { "continue reading lines until I reach the same search string +second time" } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: reading lines from a text file
by jwkrahn (Abbot) on Dec 27, 2008 at 09:07 UTC | |
by misba (Initiate) on Dec 27, 2008 at 09:49 UTC | |
by Corion (Patriarch) on Dec 27, 2008 at 09:51 UTC | |
by misba (Initiate) on Dec 27, 2008 at 10:53 UTC | |
by ikegami (Patriarch) on Dec 27, 2008 at 11:13 UTC | |
| |
|
Re: reading lines from a text file
by matrixmadhan (Beadle) on Dec 27, 2008 at 11:30 UTC | |
by tilly (Archbishop) on Dec 27, 2008 at 15:13 UTC | |
by matrixmadhan (Beadle) on Dec 27, 2008 at 16:33 UTC | |
by misba (Initiate) on Dec 27, 2008 at 11:37 UTC | |
by tilly (Archbishop) on Dec 27, 2008 at 15:20 UTC |