the arguments to printf need to be evaluated before printf goes about the business of generating its output
I'm not sure what you mean by this - as far as I know the arguments are scalars, and it doesn't look at them until it needs to.
I suspect you probably could achieve this with a tied scalar dynamically returning $max_width - $stored_width. I think it'd be a pretty insane thing to do unless there was some really strong reason not to split it into two prints, but I'm ok with a bit of insanity, I might have a go at it after some sleep.
In reply to Re^2: How to use sprintf %n formatting pattern
by hv
in thread How to use sprintf %n formatting pattern
by ibm1620
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |