Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Parse a list of path strings into a nested hash

by GrandFather (Saint)
on Sep 06, 2010 at 02:32 UTC ( [id://858967]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
            my @parts = split /\\/, $path;
    
  2. or download this
            my $scan = \%pTree;
    
  3. or download this
            $scan = $scan->{shift @parts} ||= {} while @parts;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-03-29 01:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found