And now a vote for being succint:
my $path = "/dirpath/*"; my $word = "foobar"; my $times = grep /\Q$wordhere/, glob $path; print "total = $times\n";
In reply to Re: Count word in my dir
by diotalevi
in thread Count word in my dir
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |