Dumpvalue



Dumpvalue

NAME
SYNOPSIS
DESCRIPTION

NAME

Dumpvalue − provides screen dump of Perl data.

SYNOPSIS

  use Dumpvalue;
  my $dumper = Dumpvalue−>new;
  $dumper−>set(globPrint => 1);
  $dumper−>dumpValue(\*::);
  $dumper−>dumpvars('main');
  my $dump = $dumper−>stringify($some_value);

DESCRIPTION

Creation
A new dumper is created by a call

  $d = Dumpvalue−>new(option1 => value1, option2 => value2)

Recognized options:
"arrayDepth", "hashDepth"

Print only first N elements of arrays and hashes. If false, prints all the elements.

"compactDump", "veryCompact"

Change style of array and hash dump. If true, short array may be printed on one line.

"globPrint"

Whether to print contents of globs.

"dumpDBFiles"

Dump arrays holding contents of debugged files.

"dumpPackages"

Dump symbol tables of packages.

"dumpReused"

Dump contents of "reused" addresses.

"tick", "quoteHighBit", "printUndef"

Change style of string dump. Default value of "tick" is "auto", one can enable either double-quotish dump, or single-quotish by setting it to """ or "'". By default, characters with high bit set are printed as is. If "quoteHighBit" is set, they will be quoted.

"usageOnly"

rudimentary per-package memory usage dump. If set, "dumpvars" calculates total size of strings in variables in the package.

unctrl

Changes the style of printout of strings. Possible values are "unctrl" and "quote".

subdump

Whether to try to find the subroutine name given the reference.

bareStringify

Whether to write the non-overloaded form of the stringify-overloaded objects.

quoteHighBit

Whether to print chars with high bit set in binary or "as is".

stopDbSignal

Whether to abort printing if debugger signal flag is raised.

Later in the life of the object the methods may be queries with get() method and set() method (which accept multiple arguments).

Methods
dumpValue

  $dumper−>dumpValue($value);
  $dumper−>dumpValue([$value1, $value2]);

Prints a dump to the currently selected filehandle.

dumpValues

  $dumper−>dumpValues($value1, $value2);

Same as "$dumper−>dumpValue([$value1, $value2]);".

stringify

  my $dump = $dumper−>stringify($value [,$noticks] );

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.

dumpvars

  $dumper−>dumpvars('my_package');
  $dumper−>dumpvars('my_package', 'foo', '~bar$', '!......');

The optional arguments are considered as literal strings unless they start with "~" or "!", in which case they are interpreted as regular expressions (possibly negated).

The second example prints entries with names "foo", and also entries with names which ends on "bar", or are shorter than 5 chars.

set_quote

  $d−>set_quote('"');

Sets "tick" and "unctrl" options to suitable values for printout with the given quote char. Possible values are "auto", "'" and """.

set_unctrl

  $d−>set_unctrl('unctrl');

Sets "unctrl" option with checking for an invalid argument. Possible values are "unctrl" and "quote".

compactDump

  $d−>compactDump(1);

Sets "compactDump" option. If the value is 1, sets to a reasonable big number.

veryCompact

  $d−>veryCompact(1);

Sets "compactDump" and "veryCompact" options simultaneously.

set

  $d−>set(option1 => value1, option2 => value2);

get

  @values = $d−>get('option1', 'option2');



More Linux Commands

manpages/getopt_long_only.3.html
getopt_long_only(3) - Parse command-line options (Man Page)
The getopt() function parses the command-line arguments. Its arguments argc and argv are the argument count and array as passed to the main() function on progra

manpages/vipw.8.html
vipw(8) - edit the password, group or shadow file (ManPage)
The vipw and vigr commands edits the files /etc/passwd and /etc/group, respectively. With the -s flag, they will edit the shadow versions of those files, /etc/s

manpages/optionOnlyUsage.3.html
optionOnlyUsage(3) Print usage text for just the options....
This routine will print only the usage for each option. This function may be used when the emitted usage must incorporate information not available to AutoOpts.

manpages/glEvalCoord2fv.3gl.html
glEvalCoord2fv(3gl) - evaluate enabled one- and two-dimensio
glEvalCoord1 evaluates enabled one-dimensional maps at argument u. glEvalCoord2 does the same for two-dimensional maps using two domain values, u and v. To defi

manpages/XkbGetNameChanges.3.html
XkbGetNameChanges(3) - Update the local copy of the keyboard
XkbGetNameChanges examines the changes parameter, retrieves the necessary information from the server, and places the results into the xkb keyboard description.

manpages/catanhl.html
catanhl(3) - complex arc tangents hyperbolic (Man Page).....
The catanh() function calculates the complex arc hyperbolic tangent of z. If y = catanh(z), then z = ctanh(y). The imaginary part of y is chosen in the interval

manpages/smi_class.3.html
smi_class(3) - (unknown subject) (Library - Linux man page)
These functions retrieve information on a SMIng class definition (SMIng). smiGetClass(SmiModule *smiModulePtr,char *name) returns a pointer to struct SmiClass t

manpages/SDL_SetColors.3.html
SDL_SetColors(3) - Sets a portion of the colormap for the gi
Sets a portion of the colormap for the given 8-bit surface. When surface is the surface associated with the current display, the display colormap will be update

manpages/pam_env.conf.5.html
pam_env.conf(5) - the environment variables config file.....
The /etc/security/pam_env.conf file specifies the environment variables to be set, unset or modified by pam_env(8). When someone logs in, this file is read and

manpages/rpmspec.8.html
rpmspec(8) - RPM Spec Tool (Administration - Linux man page)
rpmspec {-q|--query} [select-options] [query-options] SPEC_FILE ... select-options [-rpms] [-srpms] query-options [--qf,--queryformat QUERYFMT] ..............

manpages/my_print_defaults.1.html
my_print_defaults(1) - display options from option files....
my_print_defaults displays the options that are present in option groups of option files. The output indicates what options will be used by programs that read t

manpages/cleanlinks.1.html
cleanlinks(1) - remove dangling symbolic links and empty dir
The cleanlinks program searches the directory tree descended from the current directory for symbolic links whose targets do not exist, and removes them. It then





We can't live, work or learn in freedom unless the software we use is free.