in reply to Help with Creating a Table from array ref I parsed in

Another approach (TIMTOWTDI): use Text::Table.

#! /usr/bin/perl use warnings; use strict; use Text::Table; my $t = 'Text::Table'->new; while (<DATA>) { my @cols = split; $t->add(("") x (3 == @cols), @cols); } print $t;

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]