Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^2: hash keys from another file

by Ninke (Novice)
on Mar 23, 2013 at 13:03 UTC ( #1025034=note: print w/replies, xml ) Need Help??

in reply to Re: hash keys from another file
in thread hash keys from another file

Great, thank you and choroba for explaining me the mistake, now my code serves the purpose:)

Replies are listed 'Best First'.
Re^3: hash keys from another file
by Laurent_R (Abbot) on Mar 23, 2013 at 22:43 UTC

    Hmm, Moritz explained you a specific mistake to be corrected. But Choroba told you something that you should not overlook and is at least as important in my view: load the param file into memory (a hash or whatever, depending on the specifics), but don't load the data file in memory if you can avoid it. It is usually far better to iterate over the data line by line when possible. This will save your day when your datafile becomes huge.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1025034]
and a moth chases the moon...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (1)
As of 2017-03-26 03:08 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (313 votes). Check out past polls.