App-livehttperf
view release on metacpan or search on metacpan
lib/App/livehttperf.pm view on Meta::CPAN
hostname => undef,
verbosity => 1,
quiet => 0,
repeat => 10,
timeout => 10,
output => undef,
output_xls => undef,
);
# subs
sub LOG(@) { print @_, "\n" }
sub TRACE() { $OPTS{verbosity} >= 4; }
sub DEBUG() { $OPTS{verbosity} >= 3; }
sub INFO() { $OPTS{verbosity} >= 2; }
sub WARN() { $OPTS{verbosity} >= 1; }
sub ERROR() { ! $OPTS{quiet}; }
sub trim { s/\r?\n$// for @_ };
sub hb($) { return $_[0] ? 'Yes' : 'No' }
sub print_version {
my $year = (localtime)[5] + 1900;
my $years = $year != 2012 ? "2012-$year" : '2012';
binmode STDOUT, ":utf8";
print <<EOV;
livehttperf, version $App::livehttperf::VERSION (perl $^V)
This software is copyright (c) $years by Alex J. G. BurzyÅski <ajgb\@cpan.org>.
( run in 0.560 second using v1.01-cache-2.11-cpan-65fba6d93b7 )