Re: last entry in a file

2008-01-17 Thread Randal L. Schwartz
> "paul" == paul 0403 <[EMAIL PROTECTED]> writes: paul> Is there a quick and easy way in perl to get the last entry in a file paul> for a specific value paul> For example If I have the following data in a file paul> 1<\len> paul> int<\type> paul> 2<\len> paul> int<\type> paul> 3<\len> paul>

Re: last entry in a file

2008-01-17 Thread reader
[EMAIL PROTECTED] writes: > Please keep in mind that the data in the file is only a sample and it > will not alwasy be the second line from the bottome :-) > > I know I can read the file and keep track via a flag of where I am in > the file but this seems way to over-kill. I was hoping for some ni