kprasanna_79 has asked for the wisdom of the Perl Monks concerning the following question:
I have a file in which i have data scrambled here and there with in few lines. see the below sample
the file wil be like this.. head 1.3; branch ; access ; symbols ; locks ; strict; comment @@; format binary; 1.3 date 2006.04.04.13.57.13; author d; state Exp; branches ; next 1.2; 1.2 date 2006.04.04.08.55.21; author d; state Exp; branches ; next 1.1; 1.1 date 2006.03.27.15.45.18; author d; state Exp; branches ; next ; ext
i need to collect the last version number, date and the latest version date and number. So i some how managed to put this info in a new file and to proceed further i need to know is there any filepointer function which can traverse to the line number specified or file open options which read from the last line of the file.
Any ideas or suggestions is appreciated
-Prasanna.K
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: file pointer question
by ikegami (Patriarch) on Sep 18, 2006 at 22:36 UTC | |
|
Re: file pointer question
by Tanktalus (Canon) on Sep 18, 2006 at 22:04 UTC | |
by kprasanna_79 (Hermit) on Sep 18, 2006 at 22:18 UTC | |
|
Re: file pointer question
by Anonymous Monk on Sep 19, 2006 at 12:38 UTC |