For most situations lexical variables declared with my are exactly what you want.
There are also "global" variables that are declared with our or (subtly diffent iirc) with use vars ($variables).
You could also say no strict 'vars';, but that's a really bad idea unless you know what you're doing.
In reply to Re: Global vars
by moritz
in thread Global vars
by Alexseki
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |