in reply to printf with variable display width
$a = 1.2; $b = 123456 ; printf "%${a}f", $b ; # instead of printf "%1.2f", $b ; [download]