Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
Untraceable warning: "Warning: Use of "require" without parenthesesis ambiguous at (eval 23) line 1.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Ben Morrow, post: 4816911"] An eval is different; here, there *is* a runtime stack and Perl should show it you. I get ~% perl -Mdiagnostics=-w,-t -e'1;' -e'sub foo {eval "require +5;"} foo' Warning: Use of "require" without parentheses is ambiguous at (eval 2) line 1. at (eval 2) line 1 eval 'require+5;' called at -e line 2 main::foo() called at -e line 2 which seems to me to contain all required information; do you get something different? I have to say, I can't see how you could get that warning without doing something pretty weird. The warning is issued for require followed immediately by a binary operator; you could try grepping for 'require[[:space:]]*\+' and so on... Ben [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
Untraceable warning: "Warning: Use of "require" without parenthesesis ambiguous at (eval 23) line 1.
Top