Edit D:\app\Administrator\product\11.2.0\dbhome_1\perl\html\lib\Module\Loaded.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>Module::Loaded - mark modules as loaded or unloaded</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"> Module::Loaded - mark modules as loaded or unloaded</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="#functions">FUNCTIONS</a></li> <ul> <li><a href="#_bool___mark_as_loaded__package___">$bool = mark_as_loaded( PACKAGE );</a></li> <li><a href="#_bool___mark_as_unloaded__package___">$bool = mark_as_unloaded( PACKAGE );</a></li> <li><a href="#_loc___is_loaded__package___">$loc = is_loaded( PACKAGE );</a></li> </ul> <li><a href="#author">AUTHOR</a></li> <li><a href="#copyright">COPYRIGHT</a></li> </ul> <hr name="index" /> </div> <!-- INDEX END --> <p> </p> <h1><a name="name">NAME</a></h1> <p>Module::Loaded - mark modules as loaded or unloaded</p> <p> </p> <hr /> <h1><a name="synopsis">SYNOPSIS</a></h1> <pre> use Module::Loaded; $bool = mark_as_loaded('Foo'); # Foo.pm is now marked as loaded $loc = is_loaded('Foo'); # location of Foo.pm set to the # loaders location eval "require 'Foo'"; # is now a no-op</pre> <pre> $bool = mark_as_unloaded('Foo'); # Foo.pm no longer marked as loaded eval "require 'Foo'"; # Will try to find Foo.pm in @INC</pre> <p> </p> <hr /> <h1><a name="description">DESCRIPTION</a></h1> <p>When testing applications, often you find yourself needing to provide functionality in your test environment that would usually be provided by external modules. Rather than munging the <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlvar.html#_inc"><code>%INC</code></a> by hand to mark these external modules as loaded, so they are not attempted to be loaded by perl, this module offers you a very simple way to mark modules as loaded and/or unloaded.</p> <p> </p> <hr /> <h1><a name="functions">FUNCTIONS</a></h1> <p> </p> <h2><a name="_bool___mark_as_loaded__package___">$bool = mark_as_loaded( PACKAGE );</a></h2> <p>Marks the package as loaded to perl. <code>PACKAGE</code> can be a bareword or string.</p> <p>If the module is already loaded, <code>mark_as_loaded</code> will carp about this and tell you from where the <code>PACKAGE</code> has been loaded already.</p> <p> </p> <h2><a name="_bool___mark_as_unloaded__package___">$bool = mark_as_unloaded( PACKAGE );</a></h2> <p>Marks the package as unloaded to perl, which is the exact opposite of <code>mark_as_loaded</code>. <code>PACKAGE</code> can be a bareword or string.</p> <p>If the module is already unloaded, <code>mark_as_unloaded</code> will carp about this and tell you the <code>PACKAGE</code> has been unloaded already.</p> <p> </p> <h2><a name="_loc___is_loaded__package___">$loc = is_loaded( PACKAGE );</a></h2> <p><code>is_loaded</code> tells you if <code>PACKAGE</code> has been marked as loaded yet. <code>PACKAGE</code> can be a bareword or string.</p> <p>It returns falls if <code>PACKAGE</code> has not been loaded yet and the location from where it is said to be loaded on success.</p> <p> </p> <hr /> <h1><a name="author">AUTHOR</a></h1> <p>This module by Jos Boumans <<a href="mailto:kane@cpan.org">kane@cpan.org</a>>.</p> <p> </p> <hr /> <h1><a name="copyright">COPYRIGHT</a></h1> <p>This module is copyright (c) 2004-2005 Jos Boumans <<a href="mailto:kane@cpan.org">kane@cpan.org</a>>. All rights reserved.</p> <p>This library is free software; you may redistribute and/or modify it under the same terms as Perl itself.</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"> Module::Loaded - mark modules as loaded or unloaded</span></strong></big> </td></tr> </table> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de