Nov 4, 2009

Perl Error - Unquoted string "callFunction" may clash with future reserved word at prg.pl line 4

Error:
Unquoted string "callFunction" may clash with future reserved word at prg.pl line 4.
Useless use of a constant in void context at prg.pl line 4.

Cause & Solution:
If you are calling a function without "&" as prefix (&FunctionName) and if that function is defined after this statement then this error will occur. Since Perl is a interpreted language it executes line by line. so it assumes function name as some bareword.


If you find this information helpful, please click the ads below

No comments:

Post a Comment