Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re(golf): I'm looking for the faster way to convert char 2 Bin and Bin 2 char (8bits)by jynx (Priest) |
on Jan 27, 2001 at 03:17 UTC ( [id://54673]=note: print w/replies, xml ) | Need Help?? |
beware before! Yesterday i found an amusing little routine to do decimal to binary (not the same drek everyone did in school as i understand it). So i converted it to perl and felt like posting it. Unfortunately i may have messed up something, so if someone (like maybe IO) could tell me if i did or not that would be sweet. It is completely untested, but it should work (as if that's any boon to a programmer) jynx update: changed the $n to $num on line 5 according to IO's suggestion (thank you).
In Section
Seekers of Perl Wisdom
|
|