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 pragama forked from base.pm to "remove the cruft that accumulated there". It may be prefarable.


Written by Shlomi Fish