Re: Hash or array & retrieving hash value

2011-06-16 Thread Rob Dixon
On 16/06/2011 18:03, Grant wrote: Depending on whether there are one or more sets of values, XML::Simple either creates a hash or an array, either of which are stored here: $parsed_response->{Label}->{Image} My code retrieves the correct value when it's an array but I'm not sure how to do the s

Re: Hash or array & retrieving hash value

2011-06-16 Thread Uri Guttman
> "G" == Grant writes: >>  ForceArray => ['Image'] G> I tried that and it seems to behave the same as 'ForceArray => 1'. G> Everything seems to be forced into an array. that ForceArray should work as i have used it just like that. it will only force arrays of the keys you pass to it

Re: Hash or array & retrieving hash value

2011-06-16 Thread Grant
Depending on whether there are one or more sets of values, XML::Simple either creates a hash or an array, either of which are stored here: $parsed_response->{Label}->{Image} My code retrieves the correct value when it's an array but I'm not sure how to do the same

Re: Hash or array & retrieving hash value

2011-06-15 Thread Rob Dixon
On 16/06/2011 02:15, Grant wrote: Depending on whether there are one or more sets of values, XML::Simple either creates a hash or an array, either of which are stored here: $parsed_response->{Label}->{Image} My code retrieves the correct value when it's an array but I'm not sure how to do the s

Re: Hash or array & retrieving hash value

2011-06-15 Thread Grant
>> Depending on whether there are one or more sets of values, XML::Simple >> either creates a hash or an array, either of which are stored here: >> >> $parsed_response->{Label}->{Image} >> >> My code retrieves the correct value when it's an array but I'm not >> sure how to do the same when it's a h

Re: Hash or array & retrieving hash value

2011-06-15 Thread Rob Dixon
On 15/06/2011 18:02, Grant wrote: Depending on whether there are one or more sets of values, XML::Simple either creates a hash or an array, either of which are stored here: $parsed_response->{Label}->{Image} My code retrieves the correct value when it's an array but I'm not sure how to do the s

Hash or array & retrieving hash value

2011-06-15 Thread Grant
Depending on whether there are one or more sets of values, XML::Simple either creates a hash or an array, either of which are stored here: $parsed_response->{Label}->{Image} My code retrieves the correct value when it's an array but I'm not sure how to do the same when it's a hash. I also need t