Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: how to let sub return hash of 2 sub?

by Anonymous Monk
on May 27, 2015 at 16:03 UTC ( [id://1128029]=note: print w/replies, xml ) Need Help??


in reply to how to let sub return hash of 2 sub?

As ikegami already said above, for the example line of code you give to work, parameter needs to return objects. If you want to work with objects, it would probably help if you looked at an OO framework such as Moose or e.g. Moo to make writing your classes easier. If you want to be enlightened on callbacks, closures, iterators, and using code refs in general, Higher-Order Perl is an excellent read. Either way however, what you are doing seems like it might be a little overcomplicated, but we can't help you with the underlying task if you don't share what that is :-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-03-29 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found