I am going to try to answer this one, (I think I understand it): use strict;
package Foo; my $var1; our $var2; package Bar; $Foo::var1; # this how you call var1 from package Foo; $var2; # this how you call var2 (our makes it global across packages [and modules?]) [our == use vars qw()] __END__ so yes you must initialize any global vars. Any corrections? (I am not that great, I know I probably made a mistake). > -----Original Message----- > From: Jason Frisvold [mailto:[EMAIL PROTECTED]] > Sent: Monday, May 06, 2002 11:19 AM > To: [EMAIL PROTECTED] > Subject: use strict > > > I have a question about 'use strict' ... Yeah, I guess this > counts as > a "duh!" question... :-) > > I put 'use strict' at the beginning of one of my scripts... It > basically "broke" the script... (or fixed it, if you want to > look at it > that way) .... The problem is that it wanted explicit > package names for > all of the globals... > > So, what is the proper way to handle a global? Do I 'my' all the > globals in the program? > > --------------------------- > Jason H. Frisvold > Senior ATM Engineer > Engineering Dept. > Penteledata > CCNA Certified - CSCO10151622 > [EMAIL PROTECTED] > --------------------------- > "I love deadlines. I especially like the whooshing sound they make as > they go flying by." -- Douglas Adams [1952-2001] > > > ---------------------------------------------------------------------------- -------------------- The views and opinions expressed in this email message are the sender's own, and do not necessarily represent the views and opinions of Summit Systems Inc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]