Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Traversing a complex data structure searching for certain keys and printing their values

by newperluser2013 (Novice)
on Apr 28, 2013 at 22:46 UTC ( #1031118=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    "nfs" => {
          "%comment" => "Properties for an NFS mount definition",
    ...
            "%type" => "string"
          }
        }
    
  2. or download this
    
    {
    ...
                        "@ridge": "/vol/home2_c"
                    }
                },
    
  3. or download this
    sub recurse_hash {
      my($hash,@findkeys) = @_;
    ...
      }
    }
    
  4. or download this
    recurse_hash(\%$decoded_json_obj,"@keylist");
    
  5. or download this
    recurse_hash(\%$decoded_json_obj,"%export_name","%filer_device","%file
    +r_volume","%mount_acl","%mount_group","%mount_opts");
    
  6. or download this
    /links:nydevnfs_links:/vol/links:0755:root:root:nfsvers=3,timeo=600,re
    +trans=2
    /links:rnap7750-s:/vol/links_c:0755:root:root:nfsvers=3,timeo=600,retr
    +ans=2
    ...
    /home8:nydevnfs_home2:/vol/home2:0755:root:root:nfsvers=3,timeo=600,re
    +trans=2
    /home8:rnap2114-s:/vol/home2_c:0755:root:root:nfsvers=3,timeo=600,retr
    +ans=2
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1031118]
Approved by LanX
Front-paged by toolic
help
Chatterbox?
[ambrus]: Today I accidentally cut my hand while carrying a computer. On the display part of the motherboard that sticks out at the back of the chasis and has ports, there's this thin metal sheet with holes cut for the ports, to guide plugs into the sockets.
[ambrus]: This sheet has sharp needle-like parts, 0.004 long and less than 0.001 wide, that can get bent to point outwards, and one of these cut into my palm when I lifted the box.

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2017-01-16 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (151 votes). Check out past polls.