> Hi,
> I am new in PERL. I wanted to know how to perform bitwise 
> operations in PERL 
> like  masking some bits , anding oring bits.
> 
> Also how to have user interfaces in Perl ? Should I use tools like TK
> 
> Sachin

Read perldoc perlop, here is a snip:
--
Bitwise And

  Binary "&" returns its operators ANDed together bit by bit. (See also
  the Integer Arithmetic entry elsewhere in this document and the Bitwise
  String Operators entry elsewhere in this document.)

Bitwise Or and Exclusive Or

  Binary "|" returns its operators ORed together bit by bit. (See also the
  Integer Arithmetic entry elsewhere in this document and the Bitwise
  String Operators entry elsewhere in this document.)

  Binary "^" returns its operators XORed together bit by bit. (See also
  the Integer Arithmetic entry elsewhere in this document and the Bitwise
  String Operators entry elsewhere in this document.)
--
Unary "~" performs bitwise negation, i.e., 1's complement. For example,
"0666 & ~027" is 0640. (See also the Integer Arithmetic entry elsewhere
in this document and the Bitwise String Operators entry elsewhere in
this document.) Note that the width of the result is platform-dependent:
~0 is 32 bits wide on a 32-bit platform, but 64 bits wide on a 64-bit
platform, so if you are expecting a certain bit width, remember use the
& operator to mask off the excess bits.
---

you might also want to look at 
perldoc -f pack
perldoc -f unpack
perldoc -f vec



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to