my $v = 20; printf "%${v}s", 'foo'; [download]
In reply to Re: Possible to use variable in printf statement? by toolic in thread Possible to use variable in printf statement? by mmartin