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

Mention how "$" prototype forces scalar context on a parenthesized list #139

Open
dagolden opened this issue Nov 26, 2010 · 0 comments
Open

Comments

@dagolden
Copy link

Either in the section that discusses arrays vs lists, or in a section on prototypes, it might be worth pointing out the (possibly) surprising behavior of this:

sub foo($$$) { say "@_" }
foo( (1,2,3), 4, 5 ); # prints: 3 4 5

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

0 participants