"Perl for Perl Newbies" - Part 5 - Good Programming PracticesUseful Features in Recent Perlsuse base

5.1. use base

The use base pragma allows one to conveniently set the base packages of an object, while loading their corresponding modules at the same time. Using it is preferable to fiddling with @ISA directly.

Note that if you are using Moose, you should use the extends() function instead of use base.

The parent pragma forked from base.pm to "remove the cruft that accumulated there". It may be preferable.

Written by Shlomi Fish