[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 nice > easy grep like command.
If its the data in the len lines then you can just find it with a regex and the last find will be the one you get. while (<FILE>){ if (/regex/){ $var = $_; } } print $var . "\n"; The value of $var will change at each hit, but if you only want the last one then thats what will be in var at the print -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/