Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: Putting an array into a hash gives an unexpected reference to the hash itself.

by AnomalousMonk (Abbot)
on Nov 08, 2012 at 19:49 UTC ( #1002967=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Putting an array into a hash gives an unexpected reference to the hash itself.
in thread Putting an array into a hash gives an unexpected reference to the hash itself.

I doubt Data::Dumper inspects any variable names.

It doesn't (as far as I know), and my code example would have been clearer had I not supplied a variable name to  Dump() in contrast to the OP. I just wanted to make the points that  Data::Dumper tries to emphasize repeated references within the data structure it's dumping (as these are usually important), and that even if one could sometimes recover the name of a reference, it probably wouldn't be worth doing.


Comment on Re^3: Putting an array into a hash gives an unexpected reference to the hash itself.
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2015-07-31 06:06 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 (274 votes), past polls