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
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
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
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
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,