Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Hash of Hashes not filling - only using last line of file

by fullermd (Priest)
on Feb 22, 2013 at 07:54 UTC ( #1020098=note: print w/replies, xml ) Need Help??


in reply to Hash of Hashes not filling - only using last line of file

Because that's exactly what you're asking it to do; every time through the while(), you're setting %IACISBN_ENUM to a hash with a single key.

You want to add keys to it each time, not re-initialize it. Try something more like:

$IACISBN_ENUM{$IacIsbn} = { [...] };

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1020098]
help
Chatterbox?
[Lady_Aleena]: The people I'm talking with think /$var/ looks weird with some saying it shouldn't work.
[LanX]: interpolation! like in a "string"
[Lady_Aleena]: LanX, I just never thought I would be explaining perl regex to others. It is usually others explaining why a regex isn't working to me.
[Discipulus]: congratulations shmem! (was my last upvote? ;=)

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2017-04-28 09:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (520 votes). Check out past polls.