Le Jeu 05 Jan 2012 06:12:10, zefram@fysh.org a écrit : > Olivier Mengu?? wrote: > >Workaround: force non-void parse context with '+': > > > >$ perl -MO=Deparse -e '+sub : lvalue { die; my $a }' > >BEGIN { $^W = 1; } > >sub : lvalue { > > Here's an actual bug: B::Deparse's output suffers the unintended > interpretation. B::Deparse needs to be taught the workaround. I notice the B::Deparse bug is fixed in perl 5.24.0. $ perl -MO=Deparse -e '+sub :lvalue { die; my $a }' +sub : lvalue { die; my $a; } ; -e syntax OK I would be interested to see the commit that fixed that. --- via perlbug: queue: perl5 status: open https://rt.perl.org/Ticket/Display.html?id=107604Thread Previous