The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::Ack - A container for functions for the ack program

VERSION

Version 1.66

SYNOPSIS

If you want to know about the ack program, see the ack file itself.

No user-serviceable parts inside. ack is all that should use this.

FUNCTIONS

get_command_line_options()

skipdir_filter

Standard filter to pass as a File::Next descend_filter. It returns true if the directory is any of the ones we know we want to skip.

filetypes( $filename )

Returns a list of types that $filename could be. For example, a file foo.pod could be "perl" or "parrot".

The filetype will be undef if we can't determine it. This could be if the file doesn't exist, or it can't be read.

It will be 'skipped' if it's something that ack should always ignore, even under -a.

is_searchable( $filename )

Returns true if the filename is one that we can search, and false if it's one that we should ignore like a coredump or a backup file.

options_sanity_check( %opts )

Checks for sane command-line options. For example, -l doesn't make sense with -C.

warn( @_ )

Put out an ack-specific warning.

die( @_ )

Die in an ack-specific way.

filetypes_supported()

Returns a list of all the types that we can detect.

show_help()

Dumps the help page to the user.

show_help_types()

Display the filetypes help subpage.

get_version_statement( $copyright )

Returns the version information for ack.

Prints the version information for ack.

Return the copyright for ack.

load_colors

Set default colors, load Term::ANSIColor on non Windows platforms

is_interesting

File type filter, filtering based on the wanted file types

dash_a_file_filter

File filter for the -a option

Main search method

apply_defaults

Apply the default options

filetypes_supported_set

True/False - are the filetypes set?

filetypes_supported_unset

True/False - are the filetypes unset?

Prints all the files returned by the iterator. If $one is set, stop after the first.

Prints all the files returned by the iterator matching $regex. If $one is set, stop after the first.