App-ansicolumn

 view release on metacpan or  search on metacpan

lib/App/ansicolumn.pm  view on Meta::CPAN

    my %style = %Text::ANSI::Fold::TABSTYLE;
    my $max = max map length, keys %style;
    for my $name (sort keys %style) {
	my($head, $space) = @{$style{$name}};
	printf "%*s %s%s\n", $max, $name, $head, $space x 7;
    }
}

sub perform {
    my $obj = shift;
    local @ARGV = decode_argv(@_);
    $obj->getopt || pod2usage(2);

    $obj->setup_options;

    warn Dumper $obj if $obj->debug;

    my @files = $obj->read_files(@ARGV ? @ARGV : '-') or return 1;

    if ($obj->table) {
	my @lines = map { @{$_->{data}} } @files;

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 0.494 second using v1.00-cache-2.02-grep-82fe00e-cpan-da92000dfeb )