Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by ambrus (Abbot)
on Sep 06, 2010 at 14:09 UTC ( [id://859056]=note: print w/replies, xml ) Need Help??


in reply to Parse a list of path strings into a nested hash

See also Lexicographic tree.

By the way, Why aren't you using split /\\/, ?

Replies are listed 'Best First'.
Re^2: Parse a list of path strings into a nested hash
by jdporter (Paladin) on Sep 06, 2010 at 19:05 UTC
    Why aren't you using split /\\/, ?

    For precisely the way(s) in which split /\\/, is different from /(.*)\\(.*)/.

    What is the sound of Windows? Is it not the sound of a wall upon which people have smashed their heads... all the way through?

      You mean that the regex will split from the trailing end, whereas split splits from the leading end?

        Yes.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://859056]
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: (3)
As of 2024-04-25 04:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found