jesuashok has asked for the wisdom of the Perl Monks concerning the following question:
I have a file called "input.txt".
This file contains the 10000 lines in it.
Here my requirement goes,
I want to locate a line a starting with "Confname" as the first few characters
The normal way for doing this task
If that is the best way to make my File Handle on the line starting with, "Confname", I will go ahead with that.while ( <FH> ) { if $_ =~ /^Confname/ { ....... } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: moving the filehandle to anyline of a file
by davido (Cardinal) on May 02, 2006 at 04:51 UTC | |
by jesuashok (Curate) on May 02, 2006 at 05:18 UTC | |
|
Re: moving the filehandle to anyline of a file
by Hue-Bond (Priest) on May 02, 2006 at 05:01 UTC | |
|
Re: moving the filehandle to anyline of a file
by GrandFather (Saint) on May 02, 2006 at 04:54 UTC | |
by Tanalis (Curate) on May 02, 2006 at 08:58 UTC |