in reply to Global vars
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Global vars
by Alexseki (Initiate) on Mar 17, 2008 at 14:33 UTC | |
by skirnir (Monk) on Mar 17, 2008 at 14:39 UTC | |
by Pancho (Pilgrim) on Mar 17, 2008 at 14:43 UTC |