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 <val2>20<\val2>, with out reading through the entire file

<val1>0<\val1>
<val2>0<\val2>
<val3>0<\val3>
<val1>10<\val1>
<val2>10<\val2>
<val3>10<\val3>
<val1>20<\val1>
<val2>20<\val2>
<val3>20<\val3>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to