Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 musing on the Monastery: (11)
As of 2014-07-29 09:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (212 votes), past polls