The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

AutoConf::Utils - Collection of useful utilities used across multiple autoconf-template-perl scripts.

SYNOPSIS

 use AutoConf::Utils qw(find_files_of_type);

DESCRIPTION

Useful utilities collected here to reduce the bulk and increase maintainability in autoconf-template-perl scripts.

METHODS AND SUBROUTINES

find_files_of_type

 filed_files_of_type(args)

Traverses a path looking for files of a given type. Returns a list of absolute paths to the files found. Accepts of hash of arguments described below.

  • path

    Absolute (or relative) path to search. Note that files are returned with their absolute paths regardless of whether path is relative or absolute.

  • type

    Type (extension without .) of the files to find.

    Example: 'pm'

  • ext

    Additional extension to include in search for type (typically .in).

  • exclude_dirs

    Array of directories to skip.

  • strip_in

    Boolean that indicates .in extensions should be removed.

Example:

  my @files = find_files_of_type(
    type => 'pm',
    ext  => '.in',
    path => $path,
  );

AUTHOR

Rob Lauer - <rlauer@usgn.net>