👤
Home Man
Search
Today's Posts
Register

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:
Select Section of Man Page:
Select Man Page Repository:

RedHat 9 (Linux i386) - man page for base (redhat section 3pm)

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 %FIELDS hash if one of the base classes has it.  Multiple inheri-
       tance of %FIELDS is not supported.  The 'base' pragma will croak if multiple base classes
       have 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.

       If any of the base classes are not loaded yet, base silently "require"s them.  Whether to
       "require" a base class package is determined by the absence of a global $VERSION in the
       base package.  If $VERSION is not detected even after loading it, <base> will define $VER-
       SION in the base package, setting it to the string "-1, set by base.pm".

HISTORY
       This module was introduced with Perl 5.004_04.

SEE ALSO
       fields

perl v5.8.0				    2002-06-01					base(3pm)


All times are GMT -4. The time now is 07:19 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password