Beefy Boxes and Bandwidth Generously Provided by pair Networks kudra
Think about Loose Coupling
 
PerlMonks  

Re^2: More elegant way of doing "ordered hash"?

by PopeFelix (Sexton)
on Oct 10, 2013 at 19:36 UTC ( #1057771=note: print w/ replies, xml ) Need Help??


in reply to Re: More elegant way of doing "ordered hash"?
in thread More elegant way of doing "ordered hash"?

Value for Parameters is an arrayref.

As for sending named parameters, I can't do that because what I'm doing is wrapping XML-RPC calls to Magento, and I haven't found a way to get XML::RPC to send named params.

And yes, this was partially inspired by Moose. :)


Comment on Re^2: More elegant way of doing "ordered hash"?
Download Code
Re^3: More elegant way of doing "ordered hash"?
by PopeFelix (Sexton) on Oct 10, 2013 at 19:38 UTC
    whoops! There was a typo there. Parameters should definitely be an arrayref in define_api_method

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (17)
As of 2014-04-17 17:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (453 votes), past polls