base(3pm)

base3pm

Establish is-a relationship with base class at compile time

Usage

    package Baz;
    use base qw(Foo Bar);

Overview

Roughly similar in effect to

    BEGIN {
        require Foo;
        require Bar;
        push @ISA, qw(Foo Bar);
    }

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.

Releases

3 releases since Debian 2.0 (Hamm); the text changed 2 times.

  1. 2.0
  2. 2.1
  3. 2.2

From perl-5.004-doc 5.004.05-6 in Debian 2.2 (Potato). Also shipped by perl-5.005-doc. Parsed by carta from the page's man source.