Hello guy!

I would like to know why I need to declare global variables with "my".

My script looks something like thing:
Use strict;
$strg = "A string";
$strg2 = "a second string";

I get a warning:
"Global symbol require explicit package name."

unless I declare the variables like: 
my $strg = "A string";
my $strg2 = "a second string";

Thanks






-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to