Name : perl-Data-Denter
| |
Version : 0.15
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.1.1
| Date : 2023-07-20 17:44:01
|
Group : Development/Libraries/Perl
| Source RPM : perl-Data-Denter-0.15-lp155.1.1.src.rpm
|
Size : 0.03 MB
| |
Packager : https://www_suse_com/
| |
Summary : An (deprecated) alternative to Data::Dumper and Storable
|
Description :
The main problem with Data::Dumper (one of my all-time favorite modules) is that you have to use \'eval()\' to deserialize the data you\'ve dumped. This is great if you can trust the data you\'re evaling, but horrible if you can\'t. A good alternative is Storable.pm. It can safely thaw your frozen data. But if you want to read/edit the frozen data, you\'re out of luck, because Storable uses a binary format. Even Data::Dumper\'s output can be a little cumbersome for larger data objects.
Enter Data::Denter.
Data::Denter is yet another Perl data serializer/deserializer. It formats nested data structures in an indented fashion. It is optimized for human readability/editability, safe deserialization, and (eventually) speed.
NOTE: It may be optimized for Python programmers too, but please don\'t hold that against me ;)
It exports 2 functions: \'Indent()\' and \'Undent()\' for serialization and deserialization respectively. It also exports \'Denter()\' which is an alias to \'Indent()\'. (People who use Data::Dumper will appreciate this). You can even import \'Dumper()\' (another \'Indent\' alias) for easily toggling between Data::Dumper and Data::Denter style formatting.
Data::Denter handles all of the commonly serializable Perl data types, including: scalars, hash refs, array refs, scalar refs, ref refs, undef, and blessed references. Other references will simply be formatted in their string forms. It can even properly handle circular and duplicate references.
Data::Denter has 3 different forms of quoting string values depending on their complexity: no quotes, double quotes, and here-doc quoting. It also has a special symbol for undefined values.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-D/15.5/noarch |