Not what you asked, but the trinary op is an lvalue, making this construction easy and correct:
I think the problem with yours is that the last evaluated statement in the sub is the whole if..else block.sub foo :lvalue { $_[0] ? $bar : $baz }
After Compline,
Zaxo
In reply to Re: Oddness with lvalue and if/else blocks
by Zaxo
in thread Oddness with lvalue and if/else blocks
by BUU
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |