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

[doc] perlop unneeded parentheses #17512

Open
jidanni opened this issue Jan 31, 2020 · 0 comments
Open

[doc] perlop unneeded parentheses #17512

jidanni opened this issue Jan 31, 2020 · 0 comments

Comments

@jidanni
Copy link
Member

jidanni commented Jan 31, 2020

In perlop,

           next LINE if (1 .. /^$/);  # skip header lines, short for
                                      #   next LINE if ($. == 1 .. /^$/);

Actually all the parentheses can be removed from the example.

                                                 # (typically in a loop labeled LINE)

Actually LINE is special. Using e.g., LINEz would need a existing label.

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

1 participant