DOKK / manpages / debian 12 / libfile-wildcard-perl / File::Wildcard::Find.3pm.en
File::Wildcard::Find(3pm) User Contributed Perl Documentation File::Wildcard::Find(3pm)

File::Wildcard::Find - Simple interface to File::Wildcard

  use File::Wildcard::Find;
  findbegin( "/home/me///core");
  while (my $file = findnext()) {
     unlink $file;
  }

File::Wildcard provides a comprehensive object interface that allows you to do powerful processing with wildcards. Some consider this too unwieldy for simple tasks.

The module File::Wildcard::Find provides a straightforward interface. Only a single wildcard stream is accessible, but this should be sufficient for one liners and simple applications.

This takes 1 parameter, a path with wildcards as a string. See File::Wildcard for details of what can be passed.

Iterator that returns successive matches, then undef.

Returns a list of all matches

2022-12-12 perl v5.36.0