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

Variables::ProhibitPunctuationVars wrongly (maybe) match postderef feature. #881

Closed
mat813 opened this issue Jul 14, 2019 · 2 comments
Closed

Comments

@mat813
Copy link

mat813 commented Jul 14, 2019

Given this code:

$ cat test.pl
my $array = [ 1, 2, 3, 4 ];

print join("\n", $array->@*);

perltidy generates a:

test.pl: [Variables::ProhibitPunctuationVars] Magic punctuation variable @* used at line 3, col 26: '"\n", $array->@*'.  See page 79 of PBP.  (Severity: 2)

See features (starting with 5.24) for the whole description of postderef, basically, it means that $a->@* is equivalent to @{$a}.

I don't think there is an English equivalent of this, so it should probably not be reported.

@xsawyerx
Copy link
Collaborator

I cannot recreate this failure.

@petdance
Copy link
Member

I believe this should be handled by #578.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants