);
},
'markers|m=s',
+ 'stat|s!',
'unmodified|u!',
'width|w=i',
'usage|h' => sub { podexit() },
state $nr = $opt{hidemin} ? $opt{hidemin} - 1 : 0;
@lines and @lines > $nr or return;
+@lines or return;
+@lines > $nr or return unless $opt{hidemin};
my @order = sort { $b <=> $a } grep { length } @values;
my $maxval = $opt{hidemax} ? max @values[0 .. $opt{hidemax} - 1] : $order[0];
}
}
+@lines > $nr or return if $opt{hidemin};
+
sub sival {
my $unit = int(log($_[0]) / log(1000) - ($_[0] < 1));
my $float = $_[0] !~ /^ (?: 0*\.)? [0-9]{1,3} $/x;
}
while ($nr <= $#lines) {
- $nr >= $opt{hidemax} and last if $opt{hidemax};
+ $nr >= $opt{hidemax} and last if defined $opt{hidemax};
my $val = $values[$nr];
if (length $val) {
my $color = !$opt{color} ? 0 :
}
show_lines();
+if ($opt{stat}) {
+ printf '%d values', scalar @values;
+ say '';
+}
+
__END__
=head1 NAME
=back
+=item -s, --stat
+
+Total statistics after all data.
+
=item -u, --unmodified
Do not strip leading whitespace.