- filetypes( $filename )
- is_searchable( $filename )
- options_sanity_check( %opts )
- build_regex( $str, \%opts )
- warn( @_ )
- die( @_ )
- get_version_statement( $copyright )
- print_version_statement( $copyright )
- print_files( $iter, $one )
- print_selected_files( $iter, $regex, $one )
App::Ack - A container for functions for the ack program
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.
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.
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.
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.
Checks for sane command-line options. For example, -l doesn't make sense with -C.
Returns a regex object based on a string and command-line options.
Put out an ack-specific warning.
Die in an ack-specific way.
Returns a list of all the types that we can detect.
Dumps the help page to the user.
Display the filetypes help subpage.
Returns the version information for ack.
Prints the version information for ack.
Return the copyright for ack.
Set default colors, load Term::ANSIColor on non Windows platforms
File type filter, filtering based on the wanted file types
Main search method
Apply the default options
True/False - are the filetypes set?
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.
Minor housekeeping before we go matching files.