|Just another Perl shrine|
printf syntaxby nate_ (Initiate)
|on Aug 13, 2009 at 17:46 UTC||Need Help??|
nate_ has asked for the
wisdom of the Perl Monks concerning the following question:
Hey Everyone, I have a really easy question, I'm sure I'm just messing up the syntax, but I can't seem to find any great info on the web.
I want to use a variable in printf's "%s" formatting instead of a static number for the amount of spaces.
So instead of: printf "%5s",some_string;
I'd like to do:
$space = 5;
Thanks a lot!