Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: Convert string to hash

by AppleFritter (Vicar)
on Mar 27, 2017 at 18:14 UTC ( #1186115=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2021-10-22 15:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (85 votes). Check out past polls.

    Notices?