Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: returning nested data structures

by suaveant (Parson)
on Dec 22, 2009 at 21:13 UTC ( [id://813981]=note: print w/replies, xml ) Need Help??


in reply to returning nested data structures

Well, not all of your code is here, so its hard to tell, but if you mean to return the hash as a reference you need a return \%filters;, if not you need to do %hash = Module::method(); since you will be returning as a list. But more importantly, are you sure there is any data in the hash at the end? Use some print statements or even better change return %filters to:
use Data::Dumper; print STDERR Dumper(\%filters); return %filters;
To make sure you actually have data!

                - Ant
                - Some of my best work - (1 2 3)

Log In?
Username:
Password:

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

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

    No recent polls found