No description, website, or topics provided.
Perl6
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/IO
t
.gitignore
.travis.yml
LICENSE
META6.json
README.md

README.md

Build Status

NAME

IO::TailFile - emulation of tail -f

SYNOPSIS

use IO::TailFile;

# (a) reactive way
react {
  whenever IO::TailFile.watch("access.log", :chomp) -> $line {
    say $line;
  };
};

# (b) use lazy list
my @line = IO::TailFile.watch("access.log", :chomp).list.lazy;
for @line -> $line {
  say $line;
};

DESCRIPTION

IO::TailFile is a emulation of tail -f.

AUTHOR

Shoichi Kaji skaji@cpan.org

COPYRIGHT AND LICENSE

Copyright 2016 Shoichi Kaji

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.