M
Mark D Smith
Hi
I have to pass some data to an API as a hash. ok i know the data sent is ok
but i cannot seem to decode the reply
$menuitems
{
'oranges' => {},
}
my $result = $shop->stockstatus( $menuitems );
response is a hash in this format (or that's what the API readme says.
$menuitems
{
'oranges' =>
{
'result' => 'NOT AVAILABLE',
'message' => 'Out of Season'
}
}
How do i access 'result' or 'message', and is there an easy way for
debugging to print the hash.
Mark
I have to pass some data to an API as a hash. ok i know the data sent is ok
but i cannot seem to decode the reply
$menuitems
{
'oranges' => {},
}
my $result = $shop->stockstatus( $menuitems );
response is a hash in this format (or that's what the API readme says.
$menuitems
{
'oranges' =>
{
'result' => 'NOT AVAILABLE',
'message' => 'Out of Season'
}
}
How do i access 'result' or 'message', and is there an easy way for
debugging to print the hash.
Mark