in reply to Re: What's the opposite of // (err) operator?
in thread What's the opposite of // (err) operator?
That reads with the proper "flow" and connotations: if I find an undef after this computation, quit now.my $x= blahblah... err return; ... continue using $x
Now what version of Perl introduced err?
later... Apparently not the one I'm using! The construct above gives an error, "missing operator before err?", but the syntax works with or so it's not the precedence, but rather it seems not to know what err means!
The perldoc perlop (I'm reading for Perl 5.10.1 since that's what I'm using) has a section called “Logical or, Defined or, and Exclusive Or”, and it discusses the low-precedence or and xor but doesn't actually mention any kind of "defined or" keyword. How odd.
|
|---|