P is for Practical | |
PerlMonks |
Re: Pack decimal possibilityby BrowserUk (Patriarch) |
on May 26, 2010 at 21:35 UTC ( [id://841829]=note: print w/replies, xml ) | Need Help?? |
pack doesn't support this directly. This will do the job, though it can probably be made significantly more efficient:
It also doesn't cover unsigned numbers. Though a flag to indicate signed-ness could be added. 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
|
|