P is for Practical | |
PerlMonks |
Re: Is what you want available?by shmem (Chancellor) |
on Jun 09, 2017 at 18:24 UTC ( [id://1192438]=note: print w/replies, xml ) | Need Help?? |
However, sometimes, what is available is a little less than what is wanted. Whenever you encounter a module which provides a little less, you have 3 ways to add the missing bits (using Number::Format and Util::Number in the following):
The first decouples you from the development of Number::Format. You'd have to update your private module if you want to benefit from the improvements of Number::Format as it developes. The second possibility places on you the tiny burden of writing tests for your module, but only for those bits you have added. The third may be used if and only if a) you use Number::Format only in one place, b) the added bits are trivial, c) you know where to look when things break. So, I'd go with number 2.
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
In Section
Meditations
|
|