http://www.perlmonks.org?node_id=1186115


in reply to Re^3: Convert string to hash
in thread Convert string to hash

Also note that I dereferenced the hashref $json_hash{'results'} before using it, because it's not "stable" Perl code to call values() (or keys()) on a hashref. I imagine you got a warning like "values on reference is experimental at ...", no?

More than that, I seem to recall that this either already is deprecated and scheduled to be removed (though I can't find it in perldeprecation perldeprecation), or that deprecation was at the very least discussed. Warning or not I'd definitely not use keys and friends on a reference.

EDIT: found it. It's been removed in Perl 5.24; see perl5240delta.

Replies are listed 'Best First'.
Re^5: Convert string to hash
by haukex (Bishop) on Mar 27, 2017 at 18:27 UTC
    More than that, I seem to recall that this either already is deprecated and scheduled to be removed

    I see you've found the reference, but since I've collected a few more links I'll post my reply anyway ;-)

    The "autoderef" feature was introduced in v5.14, warnings about the experimental status were added in v5.20, and the feature was removed in v5.24. Also in v5.24, Postfix Dereference Syntax was taken out of experimental status; I believe the idea was it would serve as a replacement for autoderef (pop $arrayref becomes pop $arrayref->@*). See also perlexperiment.