-
Notifications
You must be signed in to change notification settings - Fork 559
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
do &function -- unexpected behavior #3525
Comments
From [email protected]jeffp@hut [1:00am] ~ #102> perl -w I do NOT know what to make of that. It seems like Perl interprets the jeffp@hut [1:02am] ~ #105> perl -w That is bizarre. Perl Info
|
From [Unknown Contact. See original ticket]On Mar 6, jeffp@hut.crusoe.net said:
It also occurs with: $foo = sub { print 123 }; (YES, I know do() for functions is deprecated.) This is related, at least in the parsing aspect, to the UNTOUCHED bug do(q(foo)); The first works, and tries to execute 'foo'. The second fails, and tries |
From @tamiasOn Tue, Mar 06, 2001 at 01:06:10AM -0500, jeffp@hut.crusoe.net wrote:
FYI: % perl -e 'do 123' % cat tmp do &foo is being interpreted as do EXPR, not as do SUBROUTINE, which has Ronald |
Migrated from rt.perl.org#5973 (status was 'resolved')
Searchable as RT5973$
The text was updated successfully, but these errors were encountered: