Name : perl-UNIVERSAL-dump
| |
Version : 0.09
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.1.1
| Date : 2023-01-27 16:48:54
|
Group : Unspecified
| Source RPM : perl-UNIVERSAL-dump-0.09-lp154.1.1.src.rpm
|
Size : 0.01 MB
| |
Packager : https://www_suse_com/
| |
Summary : Add dump methods to all classes and objects
|
Description :
Loading the UNIVERSAL::dump module adds one or more methods to all classes and methods. It is intended as a debugging aid, alleviating the need to add and remove debugging code from modules and programs.
By default, it adds a method \"dump\" to all classes and objects. This method either dumps the object, or any parameters specified, using Data::Dumper.
As an extra feature, the output is sent to STDERR whenever the method is called in a void context. This makes it easier to dump variable structures while debugging modules and programs.
The name of the method can be specified by parameters when loading the module. These are the method names that are currently recognized:
* blessed
Return or prints with which class the object (or any value) is blessed. Uses Scalar::Util\'s \"blessed\" subroutine.
* dump
Return or prints a representation of the object (or any value that is specified). Uses Data::Dumper\'s \"Dumper\" subroutine.
* peek
Return or prints the internal representation of the object (or any value that is specified). Uses Devel::Peek\'s \"Dump\" subroutine.
* refaddr
Return or prints with the memory address of the object (or any value specified). Uses Scalar::Util\'s \"refaddr\" subroutine.
If you cannot use one of the preset names of methods, you can specify a reference to a hash instead, in which the key is the new name of the method and the value is the name with which the dumping method is normally indicated.
If you have a dumping subroutine that is not available by default, you can add your own by specifying a reference to a hash, in which the key is the method name, and the value is the (fully qualified) name of the subroutine.
To prevent different modules fighting over the same method name, a check has been built in which will cause an exception when the same method is attempted with a different subroutine name.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-U/15.4/noarch |