-
Notifications
You must be signed in to change notification settings - Fork 558
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
\& prototype with sub call parameter #10633
Comments
From zefram@fysh.orgCreated by zefram@fysh.orgThe \& prototype is meant to take a literal "&foo" as a parameter, $ perl -lwe 'sub foo(\&) { print "foo: ", $_[0]; } sub bar { print "bar"; } foo &bar' It rejects anything that's not &-based: $ perl -lwe 'sub foo(\&) { print "foo: ", $_[0]; } sub bar { print "bar"; } foo 1' But if the parameter supplies is a subroutine call other than bare &foo, $ perl -lwe 'sub foo(\&) { print "foo: ", $_[0]; } sub bar { print "bar"; } foo &bar()' It leaves the entersub op intact, rather than extracting only the rv2cv Perl Info
|
From @cpansproutSee also #47363, which is the same thing for arrays. |
@cpansprout - Status changed from 'new' to 'open' |
From @cpansproutFixed in 2917948. -- Father Chrysostomos |
@cpansprout - Status changed from 'open' to 'pending release' |
From @khwilliamsonThanks for submitting this ticket The issue should be resolved with the release today of Perl v5.22. If you find that the problem persists, feel free to reopen this ticket -- |
@khwilliamson - Status changed from 'pending release' to 'resolved' |
Migrated from rt.perl.org#77860 (status was 'resolved')
Searchable as RT77860$
The text was updated successfully, but these errors were encountered: