Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Why is this a symbolic reference?

by btrott (Parson)
on Mar 05, 2001 at 00:08 UTC ( [id://62120]=note: print w/replies, xml ) Need Help??


in reply to Why is this a symbolic reference?

You're missing a $. Your code should look like this:
print keys %{ $hash_ref -> { key } };
The symbolic reference error comes from your code trying to dereference a string:
hash_ref->{key}
hash_ref isn't a hash ref, it's a string. $hash_ref is the hash ref.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-26 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found