![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re: convert to binary numberby choroba (Bishop) |
on Jun 05, 2017 at 12:52 UTC ( #1192159=note: print w/replies, xml ) | Need Help?? |
You can use the %b template in printf:
Update: Another option is to use pack + unpack.
In Section
Seekers of Perl Wisdom
|
|