![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: Format, empty vars, and fixed-width recordsby BrowserUk (Patriarch) |
on Apr 22, 2008 at 00:14 UTC ( #682057=note: print w/replies, xml ) | Need Help?? |
As I showed with the decimal field at the beginning of the records above, you can truncate integer fields by using %N.Ns. Unfortunately, the truncation always occurs on the right regardless of whether you use '-' or not:
Which may not be what you want. The real problem (sic) is floating point numbers, there's just no sensible way to squeeze them into a fixed width field if they stray beyond a limited range:
And its worse if you want or need to maintain point alignment. Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|