in reply to Re^2: Transpose a matrix of charsin thread Transpose a matrix of chars
my $max_cols = pop @{[sort{$a <=> $b} map { @$_- 1 } @rows]}; [download]