Edit D:\app\Administrator\product\11.2.0\dbhome_1\perl\html\lib\Dumpvalue.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>Dumpvalue - provides screen dump of Perl data.</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"> Dumpvalue - provides screen dump of Perl data.</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> <li><a href="#creation">Creation</a></li> <li><a href="#methods">Methods</a></li> </ul> </ul> <hr name="index" /> </div> <!-- INDEX END --> <p> </p> <h1><a name="name">NAME</a></h1> <p>Dumpvalue - provides screen dump of Perl data.</p> <p> </p> <hr /> <h1><a name="synopsis">SYNOPSIS</a></h1> <pre> use Dumpvalue; my $dumper = new Dumpvalue; $dumper->set(globPrint => 1); $dumper->dumpValue(\*::); $dumper->dumpvars('main'); my $dump = $dumper->stringify($some_value);</pre> <p> </p> <hr /> <h1><a name="description">DESCRIPTION</a></h1> <p> </p> <h2><a name="creation">Creation</a></h2> <p>A new dumper is created by a call</p> <pre> $d = new Dumpvalue(option1 => value1, option2 => value2)</pre> <p>Recognized options:</p> <dl> <dt><strong><a name="arraydepth_hashdepth2" class="item"><code>arrayDepth</code>, <code>hashDepth</code></a></strong> <dd> <p>Print only first N elements of arrays and hashes. If false, prints all the elements.</p> </dd> </li> <dt><strong><a name="compactdump_verycompact2" class="item"><a href="#compactdump"><code>compactDump</code></a>, <a href="#verycompact"><code>veryCompact</code></a></a></strong> <dd> <p>Change style of array and hash dump. If true, short array may be printed on one line.</p> </dd> </li> <dt><strong><a name="globprint2" class="item"><a href="#globprint"><code>globPrint</code></a></a></strong> <dd> <p>Whether to print contents of globs.</p> </dd> </li> <dt><strong><a name="dumpdbfiles" class="item"><code>dumpDBFiles</code></a></strong> <dd> <p>Dump arrays holding contents of debugged files.</p> </dd> </li> <dt><strong><a name="dumppackages" class="item"><code>dumpPackages</code></a></strong> <dd> <p>Dump symbol tables of packages.</p> </dd> </li> <dt><strong><a name="dumpreused" class="item"><code>dumpReused</code></a></strong> <dd> <p>Dump contents of "reused" addresses.</p> </dd> </li> <dt><strong><a name="tick_quotehighbit_printundef" class="item"><code>tick</code>, <a href="#quotehighbit"><code>quoteHighBit</code></a>, <code>printUndef</code></a></strong> <dd> <p>Change style of string dump. Default value of <code>tick</code> is <code>auto</code>, one can enable either double-quotish dump, or single-quotish by setting it to <code>"</code> or <code>'</code>. By default, characters with high bit set are printed <em>as is</em>. If <a href="#quotehighbit"><code>quoteHighBit</code></a> is set, they will be quoted.</p> </dd> </li> <dt><strong><a name="usageonly" class="item"><code>usageOnly</code></a></strong> <dd> <p>rudimentally per-package memory usage dump. If set, <a href="#dumpvars"><code>dumpvars</code></a> calculates total size of strings in variables in the package.</p> </dd> </li> <dt><strong><a name="unctrl" class="item">unctrl</a></strong> <dd> <p>Changes the style of printout of strings. Possible values are <a href="#unctrl"><code>unctrl</code></a> and <code>quote</code>.</p> </dd> </li> <dt><strong><a name="subdump" class="item">subdump</a></strong> <dd> <p>Whether to try to find the subroutine name given the reference.</p> </dd> </li> <dt><strong><a name="barestringify" class="item">bareStringify</a></strong> <dd> <p>Whether to write the non-overloaded form of the stringify-overloaded objects.</p> </dd> </li> <dt><strong><a name="quotehighbit" class="item">quoteHighBit</a></strong> <dd> <p>Whether to print chars with high bit set in binary or "as is".</p> </dd> </li> <dt><strong><a name="stopdbsignal" class="item">stopDbSignal</a></strong> <dd> <p>Whether to abort printing if debugger signal flag is raised.</p> </dd> </li> </dl> <p>Later in the life of the object the methods may be queries with <a href="#get"><code>get()</code></a> method and <a href="#set"><code>set()</code></a> method (which accept multiple arguments).</p> <p> </p> <h2><a name="methods">Methods</a></h2> <dl> <dt><strong><a name="dumpvalue" class="item">dumpValue</a></strong> <dd> <pre> $dumper->dumpValue($value); $dumper->dumpValue([$value1, $value2]);</pre> </dd> <dd> <p>Prints a dump to the currently selected filehandle.</p> </dd> <dt><strong><a name="dumpvalues" class="item">dumpValues</a></strong> <dd> <pre> $dumper->dumpValues($value1, $value2);</pre> </dd> <dd> <p>Same as <code> $dumper-</code>dumpValue([$value1, $value2]); >.</p> </dd> <dt><strong><a name="stringify" class="item">stringify</a></strong> <dd> <pre> my $dump = $dumper->stringify($value [,$noticks] );</pre> </dd> <dd> <p>Returns the dump of a single scalar without printing. If the second argument is true, the return value does not contain enclosing ticks. Does not handle data structures.</p> </dd> <dt><strong><a name="dumpvars" class="item">dumpvars</a></strong> <dd> <pre> $dumper->dumpvars('my_package'); $dumper->dumpvars('my_package', 'foo', '~bar$', '!......');</pre> </dd> <dd> <p>The optional arguments are considered as literal strings unless they start with <code>~</code> or <code>!</code>, in which case they are interpreted as regular expressions (possibly negated).</p> </dd> <dd> <p>The second example prints entries with names <code>foo</code>, and also entries with names which ends on <code>bar</code>, or are shorter than 5 chars.</p> </dd> <dt><strong><a name="set_quote" class="item">set_quote</a></strong> <dd> <pre> $d->set_quote('"');</pre> </dd> <dd> <p>Sets <code>tick</code> and <a href="#unctrl"><code>unctrl</code></a> options to suitable values for printout with the given quote char. Possible values are <code>auto</code>, <code>'</code> and <code>"</code>.</p> </dd> <dt><strong><a name="set_unctrl" class="item">set_unctrl</a></strong> <dd> <pre> $d->set_unctrl('unctrl');</pre> </dd> <dd> <p>Sets <a href="#unctrl"><code>unctrl</code></a> option with checking for an invalid argument. Possible values are <a href="#unctrl"><code>unctrl</code></a> and <code>quote</code>.</p> </dd> <dt><strong><a name="compactdump" class="item">compactDump</a></strong> <dd> <pre> $d->compactDump(1);</pre> </dd> <dd> <p>Sets <a href="#compactdump"><code>compactDump</code></a> option. If the value is 1, sets to a reasonable big number.</p> </dd> <dt><strong><a name="verycompact" class="item">veryCompact</a></strong> <dd> <pre> $d->veryCompact(1);</pre> </dd> <dd> <p>Sets <a href="#compactdump"><code>compactDump</code></a> and <a href="#verycompact"><code>veryCompact</code></a> options simultaneously.</p> </dd> <dt><strong><a name="set" class="item">set</a></strong> <dd> <pre> $d->set(option1 => value1, option2 => value2);</pre> </dd> <dt><strong><a name="get" class="item">get</a></strong> <dd> <pre> @values = $d->get('option1', 'option2');</pre> </dd> </dl> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> Dumpvalue - provides screen dump of Perl data.</span></strong></big> </td></tr> </table> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de