do you have an explanation for why B::Deparse gets it wrong?B::Deparse walks through the op-tree reconstructing a Perl program, and I'm guessing that its author didn't anticipate whatever weird optree you get from a ternary inside a "my". That, or it gets defeated by constant folding, just like here:
$ perl -MO=Deparse -e 'print 0?$a:$b' print $b;
In reply to Re^2: my (0?$a:$b): a koan
by educated_foo
in thread my (0?$a:$b): a koan
by educated_foo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |