rlauer has asked for the wisdom of the Perl Monks concerning the following question:
Good day Monks! I seek some wisdom as I try to "do things the right way" perlcritic doesn't like when we use @ISA explicitly...but this dog don't hunt:
use Tie::Array; use parent qw(Tie::StdArray);
I realize that Tie::StdArray is a module within Tie::StdArray so:
use parent qw(Tie::StdArray);
...doesn't hunt either... ...am I relegated to:
use vars qw(@ISA); @ISA = qw (Tie::StdArray); ## no critic (ProhibitExplicitISA)
???? - I know that perlcritic isn't always spot on, but before I ## no critic this chunk I will attempt to be enlightened. Thanks for shining some light on an otherwise dark room
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: use parent qw( Tie::StdArray)
by haj (Vicar) on Oct 28, 2022 at 18:42 UTC | |
|
Re: use parent qw( Tie::StdArray)
by pryrt (Abbot) on Oct 28, 2022 at 18:36 UTC | |
by rlauer (Novice) on Oct 28, 2022 at 18:56 UTC | |
|
Re: use parent qw( Tie::StdArray)
by afoken (Chancellor) on Oct 29, 2022 at 12:00 UTC |