⭐ in reply to How do I use @ISA and use strict at the same time?
TIMTOWTDI:
oruse strict; package Question::Loaded; use vars ('@ISA'); @ISA = ('Question');
orpackage Question::Open; @ISA = ('Question'); use strict;
and there are other ways, too. it's a matter of style.package Question::MillionDollar; use strict; our @ISA = ('Question'); # if (perl -v >= 5.6)
Edit by tye: Note that use strict can appear before the package line but that putting use vars before the package line will cause the file to fail to compile while putting our before the package line will not work in less obvious ways.
|
|---|