perldoc strict

look at 'use strict vars' in particular.

George

On Friday, June 27, 2003, at 08:51 PM, Babale Fongo wrote:

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]


-- George Schlossnagle
-- Principal Consultant
-- OmniTI Computer Consulting, Inc.
-- +1.410.872.4910 x202
-- 1024D/1100A5A0 1370 F70A 9365 96C9 2F5E  56C2 B2B9 262F 1100 A5A0


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



Reply via email to