Open Side Menu Go to the Top
Register
What is the value of 3|7 in Perl? What is the value of 3|7 in Perl?

04-02-2015 , 09:18 PM
Thanks in advanced
What is the value of 3|7 in Perl? Quote
04-02-2015 , 09:40 PM
7
What is the value of 3|7 in Perl? Quote
04-03-2015 , 01:41 PM
If you have access to Perl, then can't you figure this out on your own? If you don't have access to Perl, then why does this matter to you?
What is the value of 3|7 in Perl? Quote
04-04-2015 , 05:32 AM
http://www.tutorialspoint.com/perl/perl_operators.htm
http://en.wikipedia.org/wiki/Bitwise_operation

It's a bitwise OR operator.

Result should depend on type, but since they are ints, then 7.
What is the value of 3|7 in Perl? Quote
04-07-2015 , 06:19 PM

      
m