Hello Praveena, I recommend you to use pack and unpack function. I believe you can use this to convert the digit to binary and also extract the digit of your choice from the result.
perldoc -f pack type this command at your linux console if any to get the help on pack. Regards Nishanth --- Praveena Vittal <[EMAIL PROTECTED]> wrote: > Hi All, > > I am newbie to PERL.I think this is a very simple > question to ask. > Is there any way to print a particular bit of a > digit after converting > to binary form. > > > Thanks in Advance, > Praveena > > -- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > <http://learn.perl.org/> > <http://learn.perl.org/first-response> > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>