StuLong has asked for the wisdom of the Perl Monks concerning the following question:
I am using Perl6::Form, and have run into an issue wherein a numeric value of zero gets printed as octothorpes, as if the value is too large to fit the field. Happens for both single line and block format fields.
Perl is v5.16.3 on RHEL7. Form is 0.06.
results inuse Perl6::Form; print form '{]].[}', [0,1];
###.## 1.0
Field output is properly aligned on the decimal point, but the zero value field won't print. Anyone have any ideas how I can make my zeroes manifest themselves?
Update. Things get weirder. After reading more in Perl6:Form docs, I tried one of the examples, and discovered that if I make the field in the example above slightly larger, the zeroes print, but are not properly formatted.
print form '{]]].[}', [0,1]; 0.00. 1.0
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl6::Form not printing 0 (zero)
by toolic (Bishop) on Jan 20, 2017 at 16:41 UTC | |
by StuLong (Acolyte) on Jan 25, 2017 at 11:27 UTC | |
|
Re: Perl6::Form not printing 0 (zero)
by poj (Abbot) on Jan 20, 2017 at 17:05 UTC | |
by StuLong (Acolyte) on Jan 20, 2017 at 19:01 UTC |