in reply to Re^2: directory listing to array tree
in thread directory listing to array tree

Your code doesn't use $; at all. Even if you didn't realize it, it seems you discovered that $; is useless here since you can't do $h{@segs}.