Re: Getting last key from a file

2008-01-20 Thread reader
[EMAIL PROTECTED] writes: > my @tailar = qx/tail -n5 filename/; > my line; Should be: my $line; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Getting last key from a file

2008-01-19 Thread Rob Dixon
[EMAIL PROTECTED] wrote: > Is there a quick and easy way that I can get the last key from a file. For example, If I have this in my file (see below) how can I get the line 20<\val2>, with out reading through the entire file 0<\val1> 0<\val2> 0<\val3> 10<\val1> 10<\val2> 10<\val3> 20<\val1> 20<\

Re: Getting last key from a file

2008-01-19 Thread Tom Phoenix
On Jan 19, 2008 11:35 AM, <[EMAIL PROTECTED]> wrote: > Is there a quick and easy way that I can get the last key from a file. Do you have answers to Randal's questions when you asked this question the other day, or are you changing the problem? http://www.nntp.perl.org/group/perl.beginners/

Re: Getting last key from a file

2008-01-19 Thread reader
[EMAIL PROTECTED] writes: > For example, If I have this in my file (see below) how can I get the > line 20<\val2>, with out reading through the entire file > > 0<\val1> > 0<\val2> > 0<\val3> > 10<\val1> > 10<\val2> > 10<\val3> > 20<\val1> > 20<\val2> > 20<\val3> If you are on a unix like machine