Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

perl-Data-Dump-1.23-1.24 RPM for noarch

From OpenSuSE Leap 15.4 for noarch

Name: perl-Data-Dump Distribution: SUSE Linux Enterprise 15
Version: 1.23 Vendor: SUSE LLC <https://www.suse.com/>
Release: 1.24 Build date: Fri May 25 20:15:41 2018
Group: Development/Libraries/Perl Build host: sheep18
Size: 50901 Source RPM: perl-Data-Dump-1.23-1.24.src.rpm
Packager: https://www.suse.com/
Url: http://search.cpan.org/dist/Data-Dump/
Summary: Pretty printing of data structures
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:

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

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 "\n" terminated, even if
  contains multiple lines. This allows code like this to place the
  semicolon in the expected place:

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

  If dump() is called in void context, then the dump is printed on STDERR
  and then "\n" 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 the
  Data::Dump::Filtered manpage. 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.

Provides

Requires

License

Artistic-1.0 or GPL-1.0+

Changelog

* Sun Jun 14 2015 coolo@suse.com
  - updated to 1.23
    see /usr/share/doc/packages/perl-Data-Dump/Changes
    2015-06-09  Gisle Aas <gisle@ActiveState.com>
      Release 1.23
      Avoid "Negative repeat count does nothing"-warnings from perl-5.22
      Typo fixes by David Steinbrunner
* Tue Jun 04 2013 coolo@suse.com
  - updated to 1.22
    Deal with class names containing '=' [RT#72415]
    Filters now get access to $ctx->expr; the textual expression
    denoting the current object.
* Wed Mar 07 2012 andrea.turrini@gmail.com
  - fixed typos in perl-Data-Dump.spec description
* Thu Dec 22 2011 coolo@suse.com
  - update to 1.21
    Make dump($1) work when $1 was integer [RT#63883]
    Dump floats without quoting
    Add depth() method to FilterContext
    Make dump($1) work [RT#63883]
    Limit our temp listen socket to localhost [RT#63534]
* Thu Mar 03 2011 pascal.bleser@opensuse.org
  - update to 1.19
  - changes from 1.18:
    * don't downgrade is_utf8-strings with MIME::Base64 [RT#60103]
    * deal with the perl-5.13 (?^:...) regex construct [RT#61552]
  - changes from 1.17:
    * fix dump of "1\n" (the newline was lost) [RT#56595]
    * start using the range operator to shorten list dumps; for instance
      dump(1,2,3,4,5) now returns '(1 .. 5)'
    * CODE references now dumped as 'sub { ... }'
    * fix how multiline hash values are indented
    * make indentation configurable
  - changes from 1.16:
    * add support for filter callbacks
      + filters can modify how selected objects are dumped
    * various enhancements to how/when hash keys are quoted
      + don't quote keywords
      + don't quote words prefixed with "-"
      + don't quote long identifier keys
      + quote all hash keys if one needs quoting for better alignment
    * use case-insensitive sorting for hash keys
* Tue Nov 30 2010 coolo@novell.com
  - switch to perl_requires macro
* Sat Apr 03 2010 chris@computersalat.de
  - update to 1.15
    Fixed regexp that determines if hash keys are numeric [RT#48003]
  - Release 1.14
    - Data::Dump::Trace enhancements:
    - trace() function
    - prototypes
  - Release 1.13
    - Added the Data::Dump::Trace module
  - Release 1.12
    - Documentation tweaks.
  - Release 1.11
    - Documentation tweaks.
  - Release 1.10
    - Add the functions quote(), dd() and ddx().
    - Fix segfault when duming large repeated strings [RT#33520]
    - Incorporated documentation improvements from Mark Stosberg
    - Apply Data-Dump-1.08-ANDK-01.patch from CPAN.  Might do some
      good on older perls I guess.
  - Release 1.08
    - By popular demand; don't put underscore into dumped integers
      to group thousands.
  - Release 1.07
    - Remove unused code.
    - Add some more tests.
  - spec mods
    o HEADER, TAGS, deps, macros
  - added perl-macros
* Thu Jun 22 2006 jfunk@funktronics.ca
  - Build under buildservice
* Fri Oct 28 2005 jfunk@funktronics.ca
  - Build for SL10
* Mon Jun 06 2005 jfunk@funktronics.ca
  - Build for SL93

Files

/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.pm
/usr/lib/perl5/vendor_perl/5.26.1/Data/Dump/FilterContext.pm
/usr/lib/perl5/vendor_perl/5.26.1/Data/Dump/Filtered.pm
/usr/lib/perl5/vendor_perl/5.26.1/Data/Dump/Trace.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-Data-Dump
/usr/share/doc/packages/perl-Data-Dump/Changes
/usr/share/doc/packages/perl-Data-Dump/README
/usr/share/man/man3/Data::Dump.3pm.gz
/usr/share/man/man3/Data::Dump::Filtered.3pm.gz
/usr/share/man/man3/Data::Dump::Trace.3pm.gz


Generated by rpm2html 1.8.1

Fabrice Bellet, Sat Mar 9 16:55:39 2024