See the printfdocs for the use '*' in a format specifier:
[0] Perl> printf "%*s\n", $_, 'hello' for 10 .. 20;; hello hello hello hello hello hello hello hello hello hello hello
In reply to Re: Possible to use variable in printf statement?
by BrowserUk
in thread Possible to use variable in printf statement?
by mmartin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |