printf "%-".$width."s ", $AoA[$x][$y]; printf "%-${width}s ", $AoA[$x][$y]; #### printf "%-*s ", $width, $AoA[$x][$y]; printf "%*s ", -$width, $AoA[$x][$y];