Do you know where your variables are? | |
PerlMonks |
Re^2: How to use sprintf %n formatting patternby ibm1620 (Hermit) |
on Jun 09, 2022 at 18:24 UTC ( [id://11144601]=note: print w/replies, xml ) | Need Help?? |
This shows me that I misunderstood how %n works. I had imagined that, at execution, the arguments were copied into a temporary list which the pattern then consumed, and that %n "unshifted" its value onto the head of the list, to be the next thing to be consumed. I didn't realize that the value was actually plugged into the next variable.
In Section
Seekers of Perl Wisdom
|
|