Skip to content
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

PPI::Token::QuoteLike::Words->literal does not unescape #124

Closed
moregan opened this issue Nov 18, 2014 · 0 comments
Closed

PPI::Token::QuoteLike::Words->literal does not unescape #124

moregan opened this issue Nov 18, 2014 · 0 comments
Milestone

Comments

@moregan
Copy link
Collaborator

moregan commented Nov 18, 2014

Given this test file:

$ cat test.pl
print join( ",", qw/ \/ / );

perl unescapes the interior backslash:

$ perl -W test.pl
/

but PPI doesn't:

$ perl -MPPI::Document -WE 'say join( ",", PPI::Document->new("test.pl")->schild(0)->schild(2)->schild(0)->schild(2)->literal )'
\/

The rules are in perlop's "Gory details of parsing quoted constructs" section.

@wchristian wchristian added this to the 1.222 milestone Nov 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants