>>>>> "Zaka" == Zaka rias <[EMAIL PROTECTED]> writes:
Zaka> let's say i want convert A to binary, the first step Zaka> is finding value of A = 65, and then convert 65 to Zaka> binary, Zaka> 65 = 32 x 2 + 1 Zaka> 32 = 16 x 2 + 0 Zaka> 16 = 8 x 2 + 0 Zaka> 8 = 4 x 2 + 0 Zaka> 4 = 2 x 2 + 0 Zaka> 2 = 1 x 2 + 0 Zaka> 1 = 0 x 2 + 1 Zaka> so 65 = 1000001, is that right ? $ perl -le 'print unpack "B*", "A"' 01000001 $ perl -le 'print unpack "B*", "ABC"' 010000010100001001000011 Does that help? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
