Bootstrap FreeKB - Perl (Scripting) - Global symbol requires explicit package name
Perl (Scripting) - Global symbol requires explicit package name

Updated:   |  Perl (Scripting) articles

Global symbol requires explicit package name will only be displayed when your scipt is configured to use warnings.

use warnings;

 

Global symbol requires explicit package name will be returned when attempting to use a lexical variable outside of the scope that the lexical variable was defined in. Refer to Global and Lexical variable in Perl to understand and resolve this error.




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 1b0e73 in the box below so that we can be sure you are a human.