Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Avoid warnings while formatting with repeated format linesby Athanasius (Archbishop) |
on Aug 24, 2022 at 14:04 UTC ( [id://11146367]=note: print w/replies, xml ) | Need Help?? |
Hello hexcoder, I don’t know much about Perl’s format command, but a search found Re^2: Use of uninitialized value in formline? which seems to have the answer:
Output:
Looks like a limitation of the format function: it wants to see a separate argument for each placeholder, and it doesn’t like undef. Anyway, hope that helps,
In Section
Seekers of Perl Wisdom
|
|