in reply to printf with variable display width

Yes, it does work. Try this, for example:

$a = 1.2; $b = 123456 ; printf "%${a}f", $b ; # instead of printf "%1.2f", $b ;


to see it use the equivalent of %1.2f (quite why you'd want this, is another matter...!).

Cheers, -L-