This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
In buildtoc, eliminate @modpods by building %Found directly.
There's no need to use an intermediate array to store the results from
calling File::Find::find() as its only use is to build a hash of work to do,
by looping over it once.
Standardise on !! for the regex delimiter, and convert ^ and $ to \A and \z.
The temporary variable $pod can be eliminated, because it doesn't matter
whether $_ ends '.pod' or '.pm' in the code that follows.