Do you know where your variables are? | |
PerlMonks |
Re^2: "or die" versus "|| die"by rev_1318 (Chaplain) |
on Jun 24, 2005 at 15:21 UTC ( [id://469738]=note: print w/replies, xml ) | Need Help?? |
Yes these is a difference, as jeffa pointed out: precedence. As long as you use parentheses around e.d. open, it doesn't matter, but else it really makes a difference if you say: which will die when the open failes, or: which will die if $file is false (undef, empty or 0), but NOT if the open fails! Paul
In Section
Seekers of Perl Wisdom
|
|