Le 2011-09-06 16:12:14, STEFFENW a écrit :
Show quoted text> "use base" and "use fields" are very old modules.
> 2007 the slim "use parent" was created
> that modificates @ISA only.
> That is all we need for inheritance.
> "use base" is much more.
> Please add "use parent" as alternative recommendation.
I agree.
And I submitted a patch against Perl::Critic itself to drop most of its
usage of "base":
https://rt.cpan.org/Ticket/Display.html?id=75300
Note that parent.pm has been created by the Perl 5.10 pumpking, and is
in core since 5.10. This is more recent (2007) that the PBP (2005), but
shouldn't the policies adapt to the modern times?
--
Olivier Mengué -
http://perlresume.org/DOLMEN