Dumpvalue man page on Archlinux

Man page or keyword search:  
man Server   11224 pages
apropos Keyword Search (all sections)
Output format
Archlinux logo
[printable version]

Dumpvalue(3perl)       Perl Programmers Reference Guide	      Dumpvalue(3perl)

       Dumpvalue - provides screen dump of Perl data.

	 use Dumpvalue;
	 my $dumper = Dumpvalue->new;
	 $dumper->set(globPrint => 1);
	 my $dump = $dumper->stringify($some_value);

       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.

	   Whether to print contents of globs.

	   Dump arrays holding contents of debugged files.

	   Dump symbol tables of packages.

	   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.

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

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

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

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

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

	   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).

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

	   Prints a dump to the currently selected filehandle.

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

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

	     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.

	     $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


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


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


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


	   Sets "compactDump" and "veryCompact" options simultaneously.

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

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

perl v5.18.2			  2013-11-04		      Dumpvalue(3perl)

List of man pages available for Archlinux

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net