in reply to Possible to use variable in printf statement?

I was wondering if it is possible to use a variable in a printf statement in the "format string"?
What happened when you wrote the one-liner to try this out?
  • Comment on Re: Possible to use variable in printf statement?

Replies are listed 'Best First'.
Re^2: Possible to use variable in printf statement?
by AnomalousMonk (Archbishop) on Aug 05, 2011 at 22:59 UTC

    I'm also curious to know: What happened when mmartin took a look at the sprintf documentation?

      The world may never know ... but I look forward to that wondrous day!