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.