Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: Convert string to hash

by AppleFritter (Vicar)
on Mar 27, 2017 at 18:14 UTC ( [id://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 (Archbishop) 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?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-25 08:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found