Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: hashes hash refs and arrays

by toolic (Bishop)
on Sep 12, 2012 at 20:18 UTC ( #993304=note: print w/ replies, xml ) Need Help??


in reply to hashes hash refs and arrays

my ( $share_hash, %share_hash, @fields );
You have 2 variables with the same name. To ease the confusion, rename $share_hash as $share_hash_ref

Some other things to try:

  • Output will be easier to read if you pass a ref to Dumper: Dumper(\%share_hash)
  • Show use a few lines of your input file.
  • Basic debugging checklist


Comment on Re: hashes hash refs and arrays
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (15)
As of 2015-07-01 17:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (12 votes), past polls