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

Re: Strange memory growth (Data::Diver)

by Anonymous Monk
on Feb 17, 2018 at 20:46 UTC ( [id://1209397]=note: print w/replies, xml ) Need Help??


in reply to Strange memory growth

Classic solution is to use Data::Diver

use Data::Diver qw/ Dive /; ## if (defined $cg->{'mainsnak'}->{'datavalue'}->{'value'}->{'no +texist'}) {} ## THIS LINE if ( defined Dive( $cg, qw' mainsnak datavalue value notexist ' + ) ) { }

Ex

$ perl -e "use Data::Diver qw/Dive/; $f{a}{b}{c}=666; print Dive(\%f, +qw/a b c Q/); print Dive(\%f, qw/a b c/); " 666

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-24 15:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found