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 2.00b05

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

read_ackrc

Reads the contents of the .ackrc file and returns the arguments.

create_ignore_rules( $what, $where, \@opts )

Takes an array of options passed in on the command line and returns a hashref of information about them:

* # is: Match the filename exactly # ext: Match the extension # regex: Match against a Perl regular expression

remove_dir_sep( $path )

This functions removes a trailing path separator, if there is one, from its argument

build_regex( $str, \%opts )

Returns a regex object based on a string and command-line options.

Dies when the regex $str is undefinied (i.e. not given on command line).

check_regex( $regex_str )

Checks that the $regex_str can be compiled into a perl regular expression. Dies with the error message if this is not the case.

No return value.

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

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

output_to_pipe()

Returns true if ack's input is coming from a pipe.

exit_from_ack

Exit from the application with the correct exit code.

Returns with 0 if a match was found, otherwise with 1. The number of matches is handed in as the only argument.

COPYRIGHT & LICENSE

Copyright 2005-2013 Andy Lester.

This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License v2.0.