Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: "or die" versus "|| die"

by bart (Canon)
on Jun 24, 2005 at 17:17 UTC ( [id://469772]=note: print w/replies, xml ) Need Help??


in reply to "or die" versus "|| die"

|| is very old, or is newer. The latter is preferred, the reason why you still see || so often is indeed because or is a more recent addition.

And the difference is indeed just their precedence, or behaves more appropriately for this kind of functionality.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-04-16 08:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found