This script simulates a small part of the linux tail command. It's a small utility that helps reading / writing round-robin text files.
tail
To print the last 10 lines of a file :
tail -n 10 <filename>
To print the content as it's written :
tail -f <filename>
Parameters :
n = number of lines to print. Example : -n 10
f = monitor the file for changes and print them
If the file size is verry small and you write a lot of odata into it (more than the file size) verry fast, tail might not be able to fallow you.
Version 0.05
You can find documentation for this module with the perldoc command.
perldoc File::RoundRobin
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=File-RoundRobin
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/File-RoundRobin
CPAN Ratings
http://cpanratings.perl.org/d/File-RoundRobin
Search CPAN
http://search.cpan.org/dist/File-RoundRobin/
Copyright 2012 Gligan Calin Horea.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install File::RoundRobin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::RoundRobin
CPAN shell
perl -MCPAN -e shell install File::RoundRobin
For more information on module installation, please visit the detailed CPAN module installation guide.