The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

App::Framework::Base::Object::DumpObj - Dump out an objects contents

SYNOPSIS

use App::Framework::Base::Object::DumpObj ;

DESCRIPTION

Given a data object (scalar, hash, array etc) prints out that objects contents

REQUIRES

DIAGNOSTICS

Setting the debug flag to level 1 prints out (to STDOUT) some debug messages, setting it to level 2 prints out more verbose messages.

AUTHOR

Steve Price <sdprice at cpan.org>

BUGS

None that I know of!

INTERFACE

debug($level)

Set debug print options to $level.

0 = No debug
1 = standard debug information
2 = verbose debug information
verbose($level)

Set vebose print options to $level.

0 = Non verbose
1 = verbose print

Set option for printing out objects to $flag.

0 = Do not print contents of object [DEFAULT]
1 = print contents of object
quote_vals_flag($flag)

Set option quoting the values to $flag.

0 = Do not quote values [DEFAULT]
1 = Print values inside quotes

This is useful for re-using the output directly to define an array/hash

exclude(@list)

Set the list of excluded HASH keys. Any keys in a HASH that match the name(s) in the list will not be displayed.

Specifying an empty list clears the excludes

prefix($prefix)

Prefix all output lines with $prefix

Returns previous value

prtstr_data(@list)

Create a multiline string of all items in the list. Handles scalars, hashes (as an array), arrays, ref to scalar, ref to hash, ref to array, object.

prt_data(@list)

Print out each item in the list. Handles scalars, hashes (as an array), arrays, ref to scalar, ref to hash, ref to array, object.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 35:

=over without closing =back