Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Using File::Find to create a hash of directory structure.

by AnaximanderThales (Novice)
on Dec 21, 2015 at 21:13 UTC ( [id://1150891]=note: print w/replies, xml ) Need Help??


in reply to Re: Using File::Find to create a hash of directory structure.
in thread Using File::Find to create a hash of directory structure.

I'm sorry -- I thought my question was obvious.

In my attempt to figure out how to create the hash of the directory structure, I'm not happy with how the hash is created. As I'm a novice to perl, I was wondering:

  • What do those two lines do?
  • How does the hash %root get populated?
  • What suggestions do you have to achieve my goal?

    In an attempt for brevity, the two lines in question, the code and output examples can be referenced in the original post.

    • Comment on Re^2: Using File::Find to create a hash of directory structure.
  • Log In?
    Username:
    Password:

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

    How do I use this?Last hourOther CB clients
    Other Users?
    Others goofing around in the Monastery: (6)
    As of 2024-04-23 16:24 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found