http://qs321.pair.com?node_id=289764


in reply to Improvement on script needed.

I'm not going to remove all the fun of coding from you, so here's a hint - you can do all this in a single loop...read, increment_keyhash,write (or not, as case may be). You can 'slurp' all in one go (as you do) and write to the same file, or read from one and write to another, then rename at the end.

Then again, you could simply use Tie::File and grep, but where's the fun in that? :)

Cheers, Ben.

Replies are listed 'Best First'.
2Re: Improvement on script needed.
by jeffa (Bishop) on Sep 08, 2003 at 14:04 UTC