use strict;
use warnings;
use HTML::TableTiler;
my @matrix;
while(){
chomp;
my @row = split/,\s*/, $_;
next if ($row[0] !~ m/^B/);
push(@matrix, [@row]);
}
my $tt = HTML::TableTiler->new();
print $tt->tile_table(\@matrix);
__DATA__
PACKHAM,Staeven,MELBOURNE,3011,
JACKSON,Shane,MELBOURNE,3004,
PADDLE,Ben,MOONEE PONDS,3053,C
RAHIM,Stuart,MELBOURNE,3000,C
LAI,Bernard,MELBOURNE,3039,
BAIRD,Michael,MELBOURNE,2073,
FAIRSERVICE,Daniel,MELBOURNE,3000,N
GAKOVIC,D,MELBOURNE,3004,
MALCOLM,Raymond,MASCOT,2060,X
HALEY,Peter,MIRANDA,2640,
WALKER,Richard,MALVERN,3150,N
HALL,David,MELBOURNE,3002,
VALLAK,Simon,MELBOURNE,3043,
BALLANTYNE,Anne,MELBOURNE,3000,C
BALLER,Sarah,MELBOURNE,3000,C