in reply to Comparing depth-indent tree to full-paths

my @tree_full_paths; my @path; for ( @tree ) { /^( *)(.+)/ or next; $#path = length $1; $path[-1] = $2; push @tree_full_paths, join '/', @path; }

Now just compare the two lists using the usual methods discussed in the Perl FAQ.

Between the mind which plans and the hands which build, there must be a mediator... and this mediator must be the heart.