We don't bite newbies here... much | |
PerlMonks |
Re: Is there a better way to use the line number in a quoted string than __LINE__?by stevieb (Canon) |
on Mar 07, 2021 at 18:44 UTC ( [id://11129289]=note: print w/replies, xml ) | Need Help?? |
Many great answers so far, but another option... printf()!
Easy to read, not a whole lot of crazy syntax, and very easy to update later if new variables are needed in the output (ie. don't have to trudge through making sure you're not breaking the concatenations).
In Section
Seekers of Perl Wisdom
|
|