I want to read out a directory recursively to print the data-structure in an HTML-Page with Template::Toolkit. But I\'m hanging in how to save the Paths and Files in a form that
you can use this method as recursive file search that separate specific file types,
my @files; push @files, list_dir($outputDir); sub list_dir { my @dirs = @_; my @files; find({ wanted => sub { push @files, glob "\"$_/*.txt\"" } , no_chdir => 1 }, @dirs); return @files; }