In this case, if your open() fails then the program will die.
The difference comes when you use them in expressions. They have different precedence and '||' is evaluated before the 'or'. You can check perldoc perlop.
In reply to Re: "or die" versus "|| die"
by aditya.singh
in thread "or die" versus "|| die"
by ghenry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |