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

Undefined #var use causes perl error message without location #39

Closed
pauloscustodio opened this issue May 2, 2015 · 1 comment
Closed
Labels

Comments

@pauloscustodio
Copy link
Owner

When #var is used and $Var{var} is not defined, the perl issues the error message:
Use of uninitialized value $Var{"var"} in concatenation (.) or string at (eval 10) line 1.
Use of uninitialized value in concatenation (.) or string at (eval 10) line 1.

The error message should tell the input source file line.

@pauloscustodio
Copy link
Owner Author

In version 2.10_01, #VAR is expanded to #VAR if no variable named #VAR is defined.
As almost any symbol can be used in a variable name, there is no safe way to extract the variable name from the input, e.g. #VAR may be #V, #VA or #VAR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant