Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Improvement on script needed.

by benn (Priest)
on Sep 08, 2003 at 13:01 UTC ( #289764=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: Improvement on script needed.
2Re: Improvement on script needed.
by jeffa (Chancellor) on Sep 08, 2003 at 14:04 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://289764]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (13)
As of 2014-08-22 16:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (160 votes), past polls