Perl::Critic::Policy::ClassHierarchies::ProhibitExplicitISA - Employ C instead of C<@ISA>.


Perl-Critic documentation  | view source Contained in the Perl-Critic distribution.

Index


NAME

Top

Perl::Critic::Policy::ClassHierarchies::ProhibitExplicitISA - Employ use base instead of @ISA.

AFFILIATION

Top

This Policy is part of the core Perl::Critic distribution.

DESCRIPTION

Top

Conway recommends employing use base qw(Foo) instead of the usual our @ISA = qw(Foo) because the former happens at compile time and the latter at runtime. The base pragma also automatically loads Foo for you so you save a line of easily-forgotten code.

CONFIGURATION

Top

This Policy is not configurable except for the standard options.

NOTE

Top

Some people prefer parent over base.

AUTHOR

Top

Chris Dolan <cdolan@cpan.org>

COPYRIGHT

Top


Perl-Critic documentation  | view source Contained in the Perl-Critic distribution.