in reply to end of file!

If you want a quick and dirty hack and your OS supports
the "tail" command, try the following
print system('tail -1 the_file_you_want_last_line_from');
There may be other more elegant perl ways but this works!!

Replies are listed 'Best First'.
RE: Re: end of file!
by vnpandey (Scribe) on Jul 26, 2000 at 15:41 UTC
    Thanks but I was trying to get solution using perl code itself i.e. something which reads the file in reverse order..(I know it can be done throgh tail commond too!!)