in reply to "or die" versus "|| die"
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.
|
|---|