SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Data-Dump-SortKeys rpm build for : OpenSuSE. For other distributions click perl-Data-Dump-SortKeys.

Name : perl-Data-Dump-SortKeys
Version : 0.04 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : lp156.2.1 Date : 2024-07-03 19:03:32
Group : Development/Libraries/Perl Source RPM : perl-Data-Dump-SortKeys-0.04-lp156.2.1.src.rpm
Size : 0.05 MB
Packager : https://www_suse_com/
Summary : Data::Dump but lets you custom sort hash keys
Description :
*An experimental fork of Data::Dump 1.23 which lets you custom sort hash
keys and dump coderefs.*

This module provide a few functions that traverse their argument and
produces a string as its result. The string contains Perl code that, when
\'eval\'ed, produces a deep copy of the original arguments.

The main feature of the module is that it strives to produce output that is
easy to read. Example:

AATTa = (1, [2, 3], {4 => 5});
dump(AATTa);

Produces:

\"(1, [2, 3], { 4 => 5 })\"

If you dump just a little data, it is output on a single line. If you dump
data that is more complex or there is a lot of it, line breaks are
automatically added to keep it easy to read.

The following functions are provided (only the dd* functions are exported
by default):

* dump( ... )

* pp( ... )

Returns a string containing a Perl expression. If you pass this string to
Perl\'s built-in eval() function it should return a copy of the arguments
you passed to dump().

If you call the function with multiple arguments then the output will be
wrapped in parenthesis \"( ..., ... )\". If you call the function with a
single argument the output will not have the wrapping. If you call the
function with a single scalar (non-reference) argument it will just return
the scalar quoted if needed, but never break it into multiple lines. If you
pass multiple arguments or references to arrays of hashes then the return
value might contain line breaks to format it for easier reading. The
returned string will never be \"\
\" terminated, even if contains multiple
lines. This allows code like this to place the semicolon in the expected
place:

print \'$obj = \', dump($obj), \";\
\";

If dump() is called in void context, then the dump is printed on STDERR and
then \"\
\" terminated. You might find this useful for quick debug printouts,
but the dd*() functions might be better alternatives for this.

There is no difference between dump() and pp(), except that dump() shares
its name with a not-so-useful perl builtin. Because of this some might want
to avoid using that name.

* quote( $string )

Returns a quoted version of the provided string.

It differs from \'dump($string)\' in that it will quote even numbers and not
try to come up with clever expressions that might shorten the output. If a
non-scalar argument is provided then it\'s just stringified instead of
traversed.

* dd( ... )

* ddx( ... )

These functions will call dump() on their argument and print the result to
STDOUT (actually, it\'s the currently selected output handle, but STDOUT is
the default for that).

The difference between them is only that ddx() will prefix the lines it
prints with \"# \" and mark the first line with the file and line number
where it was called. This is meant to be useful for debug printouts of
state within programs.

* dumpf( ..., \\&filter )

Short hand for calling the dump_filtered() function of
Data::Dump::Filtered. This works like dump(), but the last argument should
be a filter callback function. As objects are visited the filter callback
is invoked and it can modify how the objects are dumped.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-D/15.6/noarch

Content of RPM  Provides Requires

Download
ftp.icm.edu.pl  perl-Data-Dump-SortKeys-0.04-lp156.2.1.noarch.rpm
     

Provides :
perl(Data::Dump::SortKeys)
perl-Data-Dump-SortKeys

Requires :
perl(:MODULE_COMPAT_5.26.1)
perl(Data::Dump::FilterContext)
perl(Data::Dump::Filtered)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.26.1/Data
/usr/lib/perl5/vendor_perl/5.26.1/Data/Dump
/usr/lib/perl5/vendor_perl/5.26.1/Data/Dump/SortKeys.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-Data-Dump-SortKeys
/usr/share/doc/packages/perl-Data-Dump-SortKeys/Changes
/usr/share/doc/packages/perl-Data-Dump-SortKeys/LICENSE
/usr/share/doc/packages/perl-Data-Dump-SortKeys/README
/usr/share/man/man3/Data::Dump::SortKeys.3pm.gz

 
ICM