Log-Defer-Viz
view release on metacpan or search on metacpan
bin/log-defer-viz view on Meta::CPAN
my $columns = $opt->{'timer-columns'};
my ($term_cols, $term_rows) = Term::Size::chars(*STDOUT{IO});
$columns = $term_cols if $term_cols;
## The _ sub is a shortcut for use in --grep, --map, and --count expressions, ie --grep "_->{data}"
sub _ () { $_ }
if ($opt->{grep}) {
my $expr = $opt->{grep};
$opt->{grep} = eval('sub { local $_ = $_[0]; ' . "$expr\n" . '}');
die "Error compiling --grep expression '$expr' ($@)" if $@;
}
if ($opt->{map}) {
my $expr = $opt->{map};
$opt->{map} = eval('sub { local $_ = $_[0]; ' . "$expr\n" . '}');
( run in 1.548 second using v1.01-cache-2.11-cpan-524268b4103 )