Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Improvement on script needed.

by benn (Vicar)
on Sep 08, 2003 at 13:01 UTC ( [id://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.

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2025-02-07 01:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (94 votes). Check out past polls.