in reply to Re: print line 5 lines previous to comaprison line!
in thread print line 5 lines previous to comaprison line!

Why read in the whole file when you're only ever interested in five lines? Sounds a bit wasteful of memory to me :)

--
<http://www.dave.org.uk>

Perl Training in the UK <http://www.iterative-software.com>

  • Comment on Re: Re: print line 5 lines previous to comaprison line!

Replies are listed 'Best First'.
Re: Re: Re: print line 5 lines previous to comaprison line!
by gollem (Acolyte) on Jun 07, 2001 at 17:16 UTC
    (I cleared this post. Note to self: never post when hungover)

    Update:I agree, it's wasteful