First assemble all the file names, then sort and print:
use strict; use 5.01; use File::Find; my $dir = "lib"; File::Find::find (\&search, $dir); my @files; sub search { push @files, $_ if -f; } say for sort { lc($a) cmp lc($b) } @files;
In reply to Re: Something like File::Find with sorting
by moritz
in thread Something like File::Find with sorting
by Doctrin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |