New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
B::Deparse fails to correctly deparse hash-derefs with conditional logic within #15102
Comments
From @demerphqIt seems that a construct like %{ delete $_{x} || {} } is deparsed horribly incorrectly: $ perl -MO=Deparse -e'$x=sub{ scalar %{ delete $_{x} || {} } }; print $x->();' This was originally a ticket against Data::Dump::Streamer which uses See: https://rt.cpan.org/Ticket/Display.html?id=103543 Yves -- |
From zefram@fysh.orgyves orton wrote:
This deparse isn't horribly incorrect. It's essentially correct: an The strange thing is why the output isn't accepted by the parser. B::Deparse could work around this by adding a semicolon after the first -zefram |
The RT System itself - Status changed from 'new' to 'open' |
From @demerphqOn 25 December 2015 at 05:06, Zefram <zefram@fysh.org> wrote:
WOAH. Talk about surprising: perl -e'$x=sub{ scalar %{; {} unless delete $_{x}; }; }; print $x->();' I bet prior to this mail you were one of a very very very small group
I see. I will leave that to you and those who knew about this subtlety
Nod. I get you. I think I could probably fix DDS to do this Cheers, -- |
Migrated from rt.perl.org#127026 (status was 'open')
Searchable as RT127026$
The text was updated successfully, but these errors were encountered: