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

RT 75921: match on implicit $_ after map/grep not recogized #67

Open
moregan opened this issue Mar 16, 2014 · 2 comments
Open

RT 75921: match on implicit $_ after map/grep not recogized #67

moregan opened this issue Mar 16, 2014 · 2 comments

Comments

@moregan
Copy link
Collaborator

moregan commented Mar 16, 2014

https://rt.cpan.org/Public/Bug/Display.html?id=75921

PPI 1.215 does not recognize a match against implicit $_ that follows map/grep if the match does not include 'm':

ppidump 'map { 0 } /z/'
                    PPI::Document
                      PPI::Statement
[    1,   1,   1 ]     PPI::Token::Word         'map'
                        PPI::Structure::Block   { ... }
                          PPI::Statement
[    1,   7,   7 ]         PPI::Token::Number   '0'
[    1,  11,  11 ]     PPI::Token::Operator     '/'
[    1,  12,  12 ]     PPI::Token::Word         'z'
[    1,  13,  13 ]     PPI::Token::Operator     '/'

But with more information like 'm', it's fine:

ppidump 'map { 0 } m/z/'
                    PPI::Document
                      PPI::Statement
[    1,   1,   1 ]     PPI::Token::Word         'map'
                        PPI::Structure::Block   { ... }
                          PPI::Statement
[    1,   7,   7 ]         PPI::Token::Number   '0'
[    1,  11,  11 ]     PPI::Token::Regexp::Match        'm/z/'
@epa
Copy link

epa commented Dec 31, 2014

I believe this is still an issue with PPI 1.220.

@epa
Copy link

epa commented Aug 14, 2017

I believe this is still an issue with PPI 1.236.

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

3 participants