Keep It Simple, Stupid | |
PerlMonks |
Re: perl 5.32 format questionby kcott (Archbishop) |
on May 29, 2023 at 13:17 UTC ( [id://11152465]=note: print w/replies, xml ) | Need Help?? |
G'day hotpelmen, The oldest version I have is v5.30.0, so I couldn't attempt to replicate your results. I had a look in perlform for a number of versions but couldn't find any change. My look was brief; you may want to study more closely:
I suspect you may be right about '~' & '~~'. There does seem to be some conflict between "perlform: Suppressing Lines Where All Fields Are Void" and "perlform: Repeating Format Lines". "Assuming I still want to use format, how would you advise to overcome this and achieve printing of whitespace values into separate lines of report?" This code, pm_11152452_testformat.pl, worked for me.
I kept REP_LINE_MAX_LENGTH very short for demo purposes; you'll want it to be 33 (if I counted correctly). I tested it on three versions:
See how you go with 5.16. — Ken
In Section
Seekers of Perl Wisdom
|
|