Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Not a HASH reference

by stevieb (Canon)
on Jul 07, 2015 at 18:19 UTC ( [id://1133589]=note: print w/replies, xml ) Need Help??


in reply to Not a HASH reference

How are you calling process(), and with what data? Your code works fine for me when I rename $VAR1 in the Dumper output to $aref, rename $address to $name and call like this: process($aref).

Could it be that one or more elements in your data aren't hash references?

foreach my $row (@data){ if (ref($row) ne 'HASH'){ print "$row not a href\n"; next; } }

-stevieb

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-23 07:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found