Kenneth Wolcott wrote:
Hi;
Hello,
Re: would like "pure" Perl solution to count of files in directory (nested subdirectories too) I would like to have a "pure" Perl solution to "find dir | wc -l"
perl -MFile::Find -le'find sub { ++$count }, "dir"; print $count' John -- The programmer is fighting against the two most destructive forces in the universe: entropy and human stupidity. -- Damian Conway -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/