Section 3: base



This page was been converted automatically, from Debian GNU/Linux man pages.




base(3pm)        Perl Programmers Reference Guide       base(3pm)


NAME

base - Establish IS-A relationship with base class at compile time

SYNOPSIS

package Baz; use base qw(Foo Bar);

DESCRIPTION

Roughly similar in effect to BEGIN { require Foo; require Bar; push @ISA, qw(Foo Bar); } Will also initialize the IELDS hash if one of the base classes has it. Multiple inheritance of IELDS is not supported. The 'base' pragma will croak if multiple base classes has a IELDS hash. See the fields manpage for a description of this feature. When strict 'vars' is in scope base also let you assign to @ISA without having to declare @ISA with the 'vars' pragma first. This module was introduced with Perl 5.004_04. SEE ALSO the fields manpage 29/Jul/1998 perl 5.005, patch 03 1