I've seen many means to return the bin value of an integer and a question came to me ...
How can i convert a char 2 bin and bin 2 char?
typing char2bin(a) --> 001000001 (not 1000001)
I have found some solutions to this one but i guess there's a better one ...
i guess in one line.
I have made some test for the contrary : bin 2 char, but
a problem came to me : it returns me the ascii value.
I have made a pack "C" then ...
but i'd like a quicker and easier solution.
so, if you'v got an idee ... i would be thanxfull :)~
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.