Ben Edwards wrote: > Ime a bit confused about globals, I know they should be used with care > but....
Some of Perl's special variables like $_, $\ etc. are global, and yes they should be used with care. perldoc perlvar > Currently I am using $::var witch seems to work. $::var is a package variable and has package scope (:: is short for main::). $ perl -le' package one; $::var = "test"; print "one: $var"; package two; print "two: $var"; package main; print "main: $var"; ' one: two: main: test > 'our var' also seems to work. That depends on what you mean by "work"? > Cant find any documentation with a discussion of this that answerers > my question totally. > > what is the conversion with globals? This may help: http://perl.plover.com/FAQs/Namespaces.html John -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/