this shouldn't be!
The prototype is explicitly declaring that only one value (i.e. the block) is passed to the sub.
> as there is no lvalue to a binary operator, it crunches.
|| is a binary operator too and according to perldoc it has the same precedence.
and as demonstrated || works as expected.
Simply phrased: please explain: why || and not //.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
In reply to Re^2: BUG when parsing defined-or ?
by LanX
in thread BUG when parsing defined-or ?
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |