Re: Global varables

2007-05-23 Thread Martin Barth
Hi, seems that there is one msg of you missing... if you want to know something about good style: perldoc perlstyle. there you can find some stuff about (package) globals. if you have a big application maybe you want a data abstraction package which should containt the database handle? -- To u

Re: Global varables

2007-05-23 Thread John W. Krahn
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 vari

Re: Global varables

2007-05-23 Thread Rob Dixon
Ben Edwards wrote: On 23/05/07, Rob Dixon <[EMAIL PROTECTED]> wrote: Ben Edwards wrote: > > Ime a bit confused about globals, I know they should be used with care > but > > Currently I am using $::var witch seems to work. There's no reason to use $::var - it's the same as $main::var so use

Re: Global varables

2007-05-23 Thread Rob Dixon
Ben Edwards wrote: Ime a bit confused about globals, I know they should be used with care but Currently I am using $::var witch seems to work. There's no reason to use $::var - it's the same as $main::var so use that if it's what you mean. 'our var' also seems to work. Work how? C

Global varables

2007-05-23 Thread Ben Edwards
Ime a bit confused about globals, I know they should be used with care but Currently I am using $::var witch seems to work. 'our var' also seems to work. Cant find any documentation with a discussion of this that answerers my question totally. what is the conversion with globals? Regards,