"John W. Krahn" schreef:
> Johnson Lau:

>> I need to compare two binary numbers and need perl to return the
>> number of matching bits. For example:
>>     $aaa = "10111100";
>>     $bbb = "00101100";
>
> Those aren't binary numbers, they are strings.

I don't mind reading "binary number" as "some base-two representation of
a number".

The word "number" is often used for an encoded stream of digits.

-- 
Affijn, Ruud

"Gewoon is een tijger."


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to