in reply to Re: BUG when parsing defined-or ?
in thread BUG when parsing defined-or ?

> The sub (&), form attempts to parse what follows the block into a list of values to pass to the subroutine,

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!