Local and Global variables in perl
In terms of scoping, there are three kinds of variables in Perl. Lexical variables are lexically scoped, which means they are only visible in the current lexical scope (basically file or block). Package variables, on the other hand, can be used using their qualified form (e.g. $Foo::x) from anywhere in the interpreter, and they can … Read more