jim wrote:
> 
> hi perl friends,
> 
> why does the expression: {print 4|3|3;} print '7'? it seems to add the first
> and the last number up.
> what does the operator '|' mean? isn't it suppose to mean "or" ( in w/c case
> it should print out '433') and not "+" ?

That's a bitwise or.

So 7 would be correct: 0100 or'd with 0011 or'd with 0011 = 0111 = 7

-- 
  ,-/-  __      _  _         $Bill Luebkert   ICQ=14439852
 (_/   /  )    // //       DBE Collectibles   http://www.todbe.com/
  / ) /--<  o // //      Mailto:[EMAIL PROTECTED] http://dbecoll.webjump.com/
-/-' /___/_<_</_</_    http://www.freeyellow.com/members/dbecoll/
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to