Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

perlman:lib:base

by root (Monk)
on Dec 23, 1999 at 00:49 UTC ( [id://1134]=perlfunc: print w/replies, xml ) Need Help??

lib:base

See the current Perl documentation for lib:base.

Here is our local, out-dated (pre-5.6) version:


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



    package Baz;
    use base qw(Foo Bar);



Roughly similar in effect to

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

Will also initialize the %FIELDS hash if one of the base classes has it. Multiple inheritance of %FIELDS is not supported. The 'base' pragma will croak if multiple base classes has a %FIELDS hash. See fields 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

fields


Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2025-04-20 16:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.