App::Ack::File
Abstracts a file from the filesystem.
Opens the file specified by $filename and returns a filehandle and a flag that says whether it could be binary.
If there's a failure, it throws a warning and returns an empty list.
Returns the name of the file.
Returns the basename (the last component the path) of the file.
Opens a filehandle for reading this file and returns it, or returns undef if the operation fails (the error is in $!). Instead of calling close $fh, $file->close should be called.
$!
close $fh
$file->close
Resets the file back to the beginning. This is only called if may_be_present() is true, but not always if may_be_present() is true.
may_be_present()
Close the file.
Clones this file.
Returns the first line of a file (or first 250 characters, whichever comes first).
To install App::Ack, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Ack
CPAN shell
perl -MCPAN -e shell install App::Ack
For more information on module installation, please visit the detailed CPAN module installation guide.