in reply to No such pseudo-hash field

because the keys are actually 'name' and 'value'. the values are '42000' and 'maxengines'. you need more like this to get those values back. I did not load your data and test it. Hope that helps.
my $maxEngine_name = $license->{'properties'}->{'name'}; my $maxEngine_value = $license->{'properties'}->{'value'};
Have a nice day.

Replies are listed 'Best First'.
Re^2: No such pseudo-hash field
by Eliya (Vicar) on Mar 28, 2011 at 11:41 UTC

    This would still produce "No such pseudo-hash field" "Pseudo-hashes are deprecated" / "Argument "maxEngines" isn't numeric in hash element" / "Bad index while coercing array into hash" (with warnings on), because $license->{'properties'} is an arrayref (1).

    Rather, it should be

    my $maxEngine_name = $license->{'properties'}->[0]->{'name'}; my $maxEngine_value = $license->{'properties'}->[0]->{'value'};

    (presuming "maxEngines" corresponds to the first entry in the array)

    ___

    (1) the values which are being looked up internally via the "index hash" (first array elem) - i.e. "maxEngines" and "42000" here - are not useful as indices for the array/pseudo hash.