Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: nested hashes and their usage e.g $foo{bar}{baz}

by Piercer (Beadle)
on Feb 27, 2003 at 12:44 UTC ( [id://239079]=note: print w/replies, xml ) Need Help??


in reply to nested hashes and their usage e.g $foo{bar}{baz}

Another way to find out what is in mystery structures is to use the debugger. run the program with -d ie perl -d foo.pl put in a breakpoint at the lines in question ie b 15 (where line 14 was your $srciphash{$srcip}{$dstip} = 1; c (continue till the breakpoint) print @srciphash - will show you that it contains a pointer not normal data. x @srciphash shows the structure and what the structure contains. Hope this helps.
  • Comment on Re: nested hashes and their usage e.g $foo{bar}{baz}

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-24 19:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found