A preference as well, although it may save you some trouble later:
foo() || die "bar"vs
foo() or die "bar"The || is of higher precedence than or. Using or (at least in the action or die pattern) can help avoid some sneaky precedence bugs.
Update: Added example below
perl -e 'print 1 - 1 || die "hello"'vs
perl -e 'print 1 - 1 or die "hello"'--MidLifeXis
In reply to Re: weird begginer's problem...
by MidLifeXis
in thread weird begginer's problem...
by Arien0611
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |