NAME

Tail::Tool::File - Looks after individual files

VERSION

This documentation refers to Tail::Tool::File version 0.4.8.

SYNOPSIS

use Tail::Tool::File;

# Create a new Tail::Tool::File object
my $file = Tail::Tool::File->new( '/my/file' );

DESCRIPTION

SUBROUTINES/METHODS

watch ()

Return: AnyEvent watcher or Linux::Inotify2 watcher

Description: Creates the watcher for the file if the file exists and is not paused.

run ($first)

Param: $first - bool - Specifies that this is the first time run has been called.

Description: Runs the the file event.

get_line ()

Description: Gets any unread lines from the file.

DIAGNOSTICS

DEPENDENCIES

INCOMPATIBILITIES

BUGS AND LIMITATIONS

There are no known bugs in this module.

Please report problems to Ivan Wills (ivan.wills@gamil.com).

Patches are welcome.

AUTHOR

Ivan Wills - (ivan.wills@gamil.com) <Author name(s)> (<contact address>)

LICENSE AND COPYRIGHT

Copyright (c) 2010 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW, Australia, 2077). All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.