#Variable would be --> $varLength printf OUTDATA "%-$varLengths ", $AoA[$x][$y];