Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Problem with passing hashes between modules

by hipowls (Curate)
on Mar 05, 2008 at 10:50 UTC ( [id://672144]=note: print w/replies, xml ) Need Help??


in reply to Problem with passing hashes between modules

You are returning a reference to an array whose content is a single hash reference. You then attempt to dereference the array as a hash. You probably mean something like this

sub passMe { my %data = ( # note not '{' ... ); return \%data, $ID; }

If you aren't getting what you expect then using Data::Dumper or YAML to print out the data structure will often help you find where the problem lies.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-19 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found