in reply to Re^2: OUR declaration
in thread OUR declaration
For instance a lot of people tend to write:
instead ofpackage Foo; use strict; our @ISA = 'Bar'; ...
so you can save a line. However you can solve that problem in other ways, for instance:package Foo; use strict; use vars qw(ISA); @ISA = 'Bar'; ...
orpackage Foo; @ISA = 'Bar'; use strict; ...
or in this casepackage Foo; use strict; @Foo::ISA = 'Bar'; ...
So our is always pretty gratuitous.package Foo; use strict; use base 'Bar'; ...
|
|---|