Edit D:\app\Administrator\product\11.2.0\dbhome_1\perl\html\lib\base.html
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>base - Establish an ISA relationship with base classes at compile time</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rev="made" href="mailto:" /> </head> <body style="background-color: white"> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> base - Establish an ISA relationship with base classes at compile time</span></strong></big> </td></tr> </table> <!-- INDEX BEGIN --> <div name="index"> <p><a name="__index__"></a></p> <ul> <li><a href="#name">NAME</a></li> <li><a href="#synopsis">SYNOPSIS</a></li> <li><a href="#description">DESCRIPTION</a></li> <li><a href="#diagnostics">DIAGNOSTICS</a></li> <li><a href="#history">HISTORY</a></li> <li><a href="#caveats">CAVEATS</a></li> <li><a href="#see_also">SEE ALSO</a></li> </ul> <hr name="index" /> </div> <!-- INDEX END --> <p> </p> <h1><a name="name">NAME</a></h1> <p>base - Establish an ISA relationship with base classes at compile time</p> <p> </p> <hr /> <h1><a name="synopsis">SYNOPSIS</a></h1> <pre> package Baz; use base qw(Foo Bar);</pre> <p> </p> <hr /> <h1><a name="description">DESCRIPTION</a></h1> <p>Allows you to both load one or more modules, while setting up inheritance from those modules at the same time. Roughly similar in effect to</p> <pre> package Baz; BEGIN { require Foo; require Bar; push @ISA, qw(Foo Bar); }</pre> <p><code>base</code> employs some heuristics to determine if a module has already been loaded, if it has it doesn't try again. If <code>base</code> tries to <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#require"><code>require</code></a> the module it will not die if it cannot find the module's file, but will die on any other error. After all this, should your base class be empty, containing no symbols, it will die. This is useful for inheriting from classes in the same file as yourself, like so:</p> <pre> package Foo; sub exclaim { "I can have such a thing?!" } package Bar; use base "Foo";</pre> <p>If $VERSION is not detected even after loading it, <base> will define $VERSION in the base package, setting it to the string <code>-1, set by base.pm</code>.</p> <p><code>base</code> will also initialize the fields if one of the base classes has it. Multiple inheritance of fields is <strong>NOT</strong> supported, if two or more base classes each have inheritable fields the 'base' pragma will croak. See <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/lib/fields.html">the fields manpage</a>, <em>public</em> and <em>protected</em> for a description of this feature.</p> <p>The base class' <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#import"><code>import</code></a> method is <strong>not</strong> called.</p> <p> </p> <hr /> <h1><a name="diagnostics">DIAGNOSTICS</a></h1> <dl> <dt><strong><a name="base_class_package_s_is_empty" class="item">Base class package "%s" is empty.</a></strong> <dd> <p>base.pm was unable to require the base package, because it was not found in your path.</p> </dd> </li> <dt><strong><a name="class_foo_tried_to_inherit_from_itself" class="item">Class 'Foo' tried to inherit from itself</a></strong> <dd> <p>Attempting to inherit from yourself generates a warning.</p> </dd> <dd> <pre> use Foo; use base 'Foo';</pre> </dd> </li> </dl> <p> </p> <hr /> <h1><a name="history">HISTORY</a></h1> <p>This module was introduced with Perl 5.004_04.</p> <p> </p> <hr /> <h1><a name="caveats">CAVEATS</a></h1> <p>Due to the limitations of the implementation, you must use base <em>before</em> you declare any of your own fields.</p> <p> </p> <hr /> <h1><a name="see_also">SEE ALSO</a></h1> <p><a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/lib/fields.html">the fields manpage</a></p> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> base - Establish an ISA relationship with base classes at compile time</span></strong></big> </td></tr> </table> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de