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

Here's another way that produces a tree whose leaf nodes have undef values:
sub paths2treeREPEL { my %tree; for (@_) { my $last = \\%tree; $last = \$$last->{$_} for split /\\/; } return \%tree; }

FWIW:
Rate JDP JDP_c GF REPEL JDP 881/s -- -23% -53% -63% JDP_c 1140/s 29% -- -39% -52% GF 1867/s 112% 64% -- -21% REPEL 2377/s 170% 109% 27% --