so this variant
my $result; $result = something() or croak "Something went wrong"; return $result;
is safer (resp. only correct) if it's supposed to be a scalar.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to Re^2: Possible precedence issue with control flow operator
by LanX
in thread Possible precedence issue with control flow operator
by will_
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |