Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Or Operator

by VSarkiss (Monsignor)
on Jul 31, 2004 at 16:46 UTC ( #378940=note: print w/ replies, xml ) Need Help??

in reply to Or Operator

The answers above address your question directly. If you ever need to figure this out on your own, the B::Deparse module, which comes standard with every Perl distribution, can be very helpful:

$ perl -MO=Deparse -e 'my $foo = bar() or baz()' baz() unless my $foo = bar(); -e syntax OK $ perl -MO=Deparse -e 'my $foo = bar() || baz()' my $foo = bar() || baz(); -e syntax OK
You can see how the two are interpreted very differently.

Comment on Re: Or Operator
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://378940]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2015-12-01 06:09 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (794 votes), past polls