1) It initialises the %FIELDS hash if one of the base classes has it.
2) Note that because of this multiple inheritance is not supported when using base.pm (Update: this restriction only applies when also using fields -- see link below.)
3) When strict 'vars' is in scope, using base also lets you assign to @ISA without having to declare @ISA with the 'vars' pragma first.
See also http://www.perl.com/doc/manual/html/lib/fields.html
One world, one people
In reply to Re: @ISA vs. base
by anonymized user 468275
in thread @ISA vs. base
by rvosa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |