{
    "mode": "perldoc",
    "parameter": "Dumpvalue",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Dumpvalue/json",
    "generated": "2026-07-05T23:22:27Z",
    "synopsis": "use Dumpvalue;\nmy $dumper = Dumpvalue->new;\n$dumper->set(globPrint => 1);\n$dumper->dumpValue(\\*::);\n$dumper->dumpvars('main');\nmy $dump = $dumper->stringify($somevalue);",
    "sections": {
        "NAME": {
            "content": "Dumpvalue - provides screen dump of Perl data.\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Dumpvalue;\nmy $dumper = Dumpvalue->new;\n$dumper->set(globPrint => 1);\n$dumper->dumpValue(\\*::);\n$dumper->dumpvars('main');\nmy $dump = $dumper->stringify($somevalue);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "",
            "subsections": [
                {
                    "name": "Creation",
                    "content": "A new dumper is created by a call\n\n$d = Dumpvalue->new(option1 => value1, option2 => value2)\n\nRecognized options:\n\n\"arrayDepth\", \"hashDepth\"\nPrint only first N elements of arrays and hashes. If false, prints all the elements.\n\n\"compactDump\", \"veryCompact\"\nChange style of array and hash dump. If true, short array may be printed on one line.\n\n\"globPrint\"\nWhether to print contents of globs.\n\n\"dumpDBFiles\"\nDump arrays holding contents of debugged files.\n\n\"dumpPackages\"\nDump symbol tables of packages.\n\n\"dumpReused\"\nDump contents of \"reused\" addresses.\n\n\"tick\", \"quoteHighBit\", \"printUndef\"\nChange style of string dump. Default value of \"tick\" is \"auto\", one can enable either\ndouble-quotish dump, or single-quotish by setting it to \"\"\" or \"'\". By default, characters\nwith high bit set are printed *as is*. If \"quoteHighBit\" is set, they will be quoted.\n\n\"usageOnly\"\nrudimentary per-package memory usage dump. If set, \"dumpvars\" calculates total size of\nstrings in variables in the package.\n\nunctrl\nChanges the style of printout of strings. Possible values are \"unctrl\" and \"quote\".\n\nsubdump\nWhether to try to find the subroutine name given the reference.\n\nbareStringify\nWhether to write the non-overloaded form of the stringify-overloaded objects.\n\nquoteHighBit\nWhether to print chars with high bit set in binary or \"as is\".\n\nstopDbSignal\nWhether to abort printing if debugger signal flag is raised.\n\nLater in the life of the object the methods may be queries with get() method and set() method\n(which accept multiple arguments).\n"
                },
                {
                    "name": "Methods",
                    "content": "dumpValue\n$dumper->dumpValue($value);\n$dumper->dumpValue([$value1, $value2]);\n\nPrints a dump to the currently selected filehandle.\n\ndumpValues\n$dumper->dumpValues($value1, $value2);\n\nSame as \"$dumper->dumpValue([$value1, $value2]);\".\n\nstringify\nmy $dump = $dumper->stringify($value [,$noticks] );\n\nReturns the dump of a single scalar without printing. If the second argument is true, the\nreturn value does not contain enclosing ticks. Does not handle data structures.\n\ndumpvars\n$dumper->dumpvars('mypackage');\n$dumper->dumpvars('mypackage', 'foo', '~bar$', '!......');\n\nThe optional arguments are considered as literal strings unless they start with \"~\" or \"!\",\nin which case they are interpreted as regular expressions (possibly negated).\n\nThe second example prints entries with names \"foo\", and also entries with names which ends\non \"bar\", or are shorter than 5 chars.\n\nsetquote\n$d->setquote('\"');\n\nSets \"tick\" and \"unctrl\" options to suitable values for printout with the given quote char.\nPossible values are \"auto\", \"'\" and \"\"\".\n\nsetunctrl\n$d->setunctrl('unctrl');\n\nSets \"unctrl\" option with checking for an invalid argument. Possible values are \"unctrl\" and\n\"quote\".\n\ncompactDump\n$d->compactDump(1);\n\nSets \"compactDump\" option. If the value is 1, sets to a reasonable big number.\n\nveryCompact\n$d->veryCompact(1);\n\nSets \"compactDump\" and \"veryCompact\" options simultaneously.\n\nset\n$d->set(option1 => value1, option2 => value2);\n\nget\n@values = $d->get('option1', 'option2');\n"
                }
            ]
        }
    },
    "summary": "Dumpvalue - provides screen dump of Perl data.",
    "flags": [],
    "examples": [],
    "see_also": []
}