in reply to Re^2: sorting tree with folders on top
in thread sorting tree with folders on top

Filesys::Tree, tree

Output from tree Filesys-Tree-0.02

. |--Changes |--MANIFEST |--META.yml |--Makefile |--Makefile.PL |--README |--blib | |--arch | | `--auto | | `--Filesys | | `--Tree | |--bin | |--lib | | |--Filesys | | | `--Tree.pm | | `--auto | | `--Filesys | | `--Tree | |--man1 | |--man3 | `--script | |--tree | `--tree.bat |--lib | `--Filesys | `--Tree.pm |--pm_to_blib |--t | |--00.load.t | |--pod-coverage.t | `--pod.t `--tree
Data::Dumper output for Filesys-Tree-0.02
$VAR1 = { '.' => { 'contents' => { 'tree' => { 'type' => 'f' }, 'META.yml' => { 'type' => 'f' }, 'Changes' => { 'type' => 'f' }, 'MANIFEST' => { 'type' => 'f' }, 'lib' => { 'contents' => { 'Filesys' => { 'contents' => { 'Tree.pm' => { 'type' => 'f' } }, 'type' => 'd' } }, 'type' => 'd' }, 'blib' => { 'contents' => { 'script' => { 'contents' => { 'tree' => { 'type' => 'f' }, 'tree.bat' => { 'type' => 'f' } }, 'type' => 'd' }, 'bin' => { 'contents' => {}, 'type' => 'd' }, 'man3' => { 'contents' => {}, 'type' => 'd' }, 'arch' => { 'contents' => { 'auto' => { 'contents' => { 'Filesys' => { 'contents' => { 'Tree' => { 'contents' => {}, 'type' => 'd' } }, 'type' => 'd' } }, 'type' => 'd' } }, 'type' => 'd' }, 'lib' => { 'contents' => { 'Filesys' => { 'contents' => { 'Tree.pm' => { 'type' => 'f' } }, 'type' => 'd' }, 'auto' => { 'contents' => { 'Filesys' => { 'contents' => { 'Tree' => { 'contents' => {}, 'type' => 'd' } }, 'type' => 'd' } }, 'type' => 'd' } }, 'type' => 'd' }, 'man1' => { 'contents' => {}, 'type' => 'd' } }, 'type' => 'd' }, 'Makefile' => { 'type' => 'f' }, 'pm_to_blib' => { 'type' => 'f' }, 't' => { 'contents' => { 'pod-coverage.t' => { 'type' => 'f' }, '00.load.t' => { 'type' => 'f' }, 'pod.t' => { 'type' => 'f' } }, 'type' => 'd' }, 'README' => { 'type' => 'f' }, 'Makefile.PL' => { 'type' => 'f' } }, 'type' => 'd' } };

Replies are listed 'Best First'.
Re^4: sorting tree with folders on top
by diweooy (Novice) on Apr 07, 2009 at 12:40 UTC
    thanks, but I get a list of paths in a file. I have no influence on the (creation of the) list.