in reply to Bitwise operators

Hi thevoid,

No need to mask off individual bits (though you can do that if you really need to using & and >> -- see perlop for more on these operators).

Try reading the documentation for sprintf (and search for the word binary).  You should find that it has all the power you need!

Update:  You may prefer the nearly identical printf for your purposes.


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/