That will make it global and comply with strict. Or you can setup your functions to take in parametersour $var = whatever;
my $var1 =5; &func1($var1); ........somewhere else in code your func dec sub func1 { #this will grab the variable $var1 you passed in my $private_var = shift; }
In reply to Re: Globals with Strict
by bear0053
in thread Globals with Strict
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |