Edit D:\app\Administrator\product\11.2.0\dbhome_1\perl\html\lib\warnings.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>warnings - Perl pragma to control optional warnings</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"> warnings - Perl pragma to control optional warnings</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> </ul> <hr name="index" /> </div> <!-- INDEX END --> <p> </p> <h1><a name="name">NAME</a></h1> <p>warnings - Perl pragma to control optional warnings</p> <p> </p> <hr /> <h1><a name="synopsis">SYNOPSIS</a></h1> <pre> use warnings; no warnings;</pre> <pre> use warnings "all"; no warnings "all";</pre> <pre> use warnings::register; if (warnings::enabled()) { warnings::warn("some warning"); }</pre> <pre> if (warnings::enabled("void")) { warnings::warn("void", "some warning"); }</pre> <pre> if (warnings::enabled($object)) { warnings::warn($object, "some warning"); }</pre> <pre> warnings::warnif("some warning"); warnings::warnif("void", "some warning"); warnings::warnif($object, "some warning");</pre> <p> </p> <hr /> <h1><a name="description">DESCRIPTION</a></h1> <p>The <code>warnings</code> pragma is a replacement for the command line flag <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlrun.html#w"><code>-w</code></a>, but the pragma is limited to the enclosing block, while the flag is global. See <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perllexwarn.html">the perllexwarn manpage</a> for more information.</p> <p>If no import list is supplied, all possible warnings are either enabled or disabled.</p> <p>A number of functions are provided to assist module authors.</p> <dl> <dt><strong><a name="use_warnings_register" class="item">use warnings::register</a></strong> <dd> <p>Creates a new warnings category with the same name as the package where the call to the pragma is used.</p> </dd> </li> <dt><strong><a name="enabled" class="item">warnings::enabled()</a></strong> <dd> <p>Use the warnings category with the same name as the current package.</p> </dd> <dd> <p>Return TRUE if that warnings category is enabled in the calling module. Otherwise returns FALSE.</p> </dd> </li> <dt><strong>warnings::enabled($category)</strong> <dd> <p>Return TRUE if the warnings category, <code>$category</code>, is enabled in the calling module. Otherwise returns FALSE.</p> </dd> </li> <dt><strong>warnings::enabled($object)</strong> <dd> <p>Use the name of the class for the object reference, <code>$object</code>, as the warnings category.</p> </dd> <dd> <p>Return TRUE if that warnings category is enabled in the first scope where the object is used. Otherwise returns FALSE.</p> </dd> </li> <dt><strong><a name="warn" class="item">warnings::warn($message)</a></strong> <dd> <p>Print <code>$message</code> to STDERR.</p> </dd> <dd> <p>Use the warnings category with the same name as the current package.</p> </dd> <dd> <p>If that warnings category has been set to "FATAL" in the calling module then die. Otherwise return.</p> </dd> </li> <dt><strong>warnings::warn($category, $message)</strong> <dd> <p>Print <code>$message</code> to STDERR.</p> </dd> <dd> <p>If the warnings category, <code>$category</code>, has been set to "FATAL" in the calling module then die. Otherwise return.</p> </dd> </li> <dt><strong>warnings::warn($object, $message)</strong> <dd> <p>Print <code>$message</code> to STDERR.</p> </dd> <dd> <p>Use the name of the class for the object reference, <code>$object</code>, as the warnings category.</p> </dd> <dd> <p>If that warnings category has been set to "FATAL" in the scope where <code>$object</code> is first used then die. Otherwise return.</p> </dd> </li> <dt><strong><a name="warnif" class="item">warnings::warnif($message)</a></strong> <dd> <p>Equivalent to:</p> </dd> <dd> <pre> if (warnings::enabled()) { warnings::warn($message) }</pre> </dd> </li> <dt><strong>warnings::warnif($category, $message)</strong> <dd> <p>Equivalent to:</p> </dd> <dd> <pre> if (warnings::enabled($category)) { warnings::warn($category, $message) }</pre> </dd> </li> <dt><strong>warnings::warnif($object, $message)</strong> <dd> <p>Equivalent to:</p> </dd> <dd> <pre> if (warnings::enabled($object)) { warnings::warn($object, $message) }</pre> </dd> </li> </dl> <p>See <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlmodlib.html#pragmatic_modules">Pragmatic Modules in the perlmodlib manpage</a> and <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perllexwarn.html">the perllexwarn 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"> warnings - Perl pragma to control optional warnings</span></strong></big> </td></tr> </table> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de