Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by jeffa (Bishop)
on Jun 24, 2005 at 14:56 UTC ( #469727=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $foo = $bar->fetch('baz') or die "something went wrong\n";
    
  2. or download this
    my $foo = $bar->fetch('baz') || 'default';
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2016-07-28 16:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (255 votes). Check out past polls.