[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Converting a String of bits into a binary number in perl?


Hi,
    Can anyone tell me how do I convert a String of bits into a binary number in Perl
 
For eg:- $a="100";  I want to convert this into perl's interpretation of binary no ie $a=0b100
 
 
Thanks,
Deepak

Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.