Tail::Tool::Plugin::Spacing - Prints spaces when there has been a pause in running.
This documentation refers to Tail::Tool::Plugin::Spacing version 0.3.0.
use Tail::Tool::Plugin::Spacing; # Brief but working code example(s) here showing the most common usage(s) # This section will be as far as many users bother reading, so make it as # educational and exemplary as possible. my $sp = Tail::Tool::Plugin::Spacing( times => [ 2, 5 ], lines => [ 2, 5 ], ); $sp->process("test\n"); # returns ("test\n"); ... # 2 seconds later $sp->process("test\n"); # returns ( "\n", "\n", "test\n" ); ... # another 5 seconds later $sp->process("test\n"); # returns ( "\n", "\n", "\n", "\n", "\n", "\n", "\n", "test\n" ); # ie 7 blank lines ( 2 lines + 5 lines )
times - [int] - The minimum time (in seconds) for a pause to be considered to have occurred, resulting in the corresponding number of lines (in the
lines argument) prepended to the found line.
lines - [int] - The number of lines to print when the corresponding period in
times is reached.
Description: create a new object
Description: Prints spaces based on time between last call and this one and the settings.
Returns a string that summarise the current settings of the plugin instance
There are no known bugs in this module.
Please report problems to Ivan Wills (email@example.com).
Patches are welcome.
Ivan Wills - (firstname.lastname@example.org) <Author name(s)> (<contact address>)
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.