ramesh_nathan has asked for the wisdom of the Perl Monks concerning the following question:
I have a question on reading files in PERL.
I have adopted the general approach of putting the file handle inside a while loop and then reading it line by line. Now if I need to go back to a particular line say line number 30 ...how do I do it if I have already passed this line. Would really appreciate if anybody can help me..
emailramesh_nathan@yahoo.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: FILE operation in PERL
by BrowserUk (Patriarch) on Jul 19, 2003 at 07:10 UTC | |
|
Re: FILE operation in PERL
by dws (Chancellor) on Jul 19, 2003 at 06:19 UTC | |
by ramesh_nathan (Initiate) on Jul 19, 2003 at 08:16 UTC | |
by dws (Chancellor) on Jul 19, 2003 at 08:18 UTC | |
by ramesh_nathan (Initiate) on Jul 19, 2003 at 08:20 UTC | |
by BrowserUk (Patriarch) on Jul 19, 2003 at 12:32 UTC | |
|
Re: FILE operation in PERL
by sgifford (Prior) on Jul 19, 2003 at 06:11 UTC | |
by diotalevi (Canon) on Jul 19, 2003 at 06:20 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |