The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Perl::Critic::Policy::Tics::ProhibitUseBase - do not use base.pm

VERSION

version 0.001

DESCRIPTION

  use base qw(Baseclass);

You've seen that a hundred times, right? That doesn't mean that it's a good idea. It screws with $VERSION, it (temporarily) clobbers your $SIG{__DIE__}, it doesn't let you call the base class's import method, it pushes to @INC rather than replacing it, and it devotes much of its code to handling the nearly totally unused fields pragma -- but the multiple inheritence that pushing to @INC sets up is not supported by fields.

There are a lot of ways around using base. Pick one.

AUTHOR

Ricardo SIGNES <rjbs@cpan.org>

COPYRIGHT

Copyright (c) 2007 Ricardo SIGNES.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.