Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: How to decode a hash value

by kcott (Archbishop)
on May 14, 2012 at 00:45 UTC ( [id://970369]=note: print w/replies, xml ) Need Help??

in reply to How to decode a hash value

$response is a reference to a hash blessed into the QMIResponse class (I couldn't find this module on CPAN). You can dereference with %$response for the whole hash, @{$response}{@slice_keys} for a hash slice or $response->{$key} for individual values.

However, before trying to access that data directly, look for methods provided by the QMIResponse class for doing this. Using the methods provided by the class means that $response->get_whatever() still works long after QMIResponse=HASH(0xe68d4d4) becomes QMIResponse=ARRAY(0xe68d4d4) or QMIResponse=SCALAR(0xe68d4d4).

-- Ken

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-07-16 06:14 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.