Data::Format::Pretty::PHPSerialization - Pretty-print data structure as PHP serialization format
version 0.03
use Data::Format::Pretty::PHPSerialization qw(format_pretty); print format_pretty($data);
Some example output:
format_pretty({a=>1, b=>2})
a:2:{s:1:"a";i:1;s:1:"b";i:2;}
This module uses PHP::Serialization to encode data as PHP serialization format, which I frankly wouldn't call as a "pretty" format, but added for completeness sake (used by e.g. Perinci::Access::HTTP::Server).
Return formatted data structure as PHP serialization format. Currently there are no known options.
Data::Format::Pretty
Please visit the project's homepage at https://metacpan.org/release/Data-Format-Pretty-PHPSerialization.
Source repository is at https://github.com/sharyanto/perl-Data-Format-Pretty-PHPSerialization.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Data-Format-Pretty-PHPSerialization
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Steven Haryanto <stevenharyanto@gmail.com>
This software is copyright (c) 2013 by Steven Haryanto.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Data::Format::Pretty::PHPSerialization, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Format::Pretty::PHPSerialization
CPAN shell
perl -MCPAN -e shell install Data::Format::Pretty::PHPSerialization
For more information on module installation, please visit the detailed CPAN module installation guide.