Data::Format::Pretty::PHPSerialization - Pretty-print data structure as PHP serialization format
version 0.01
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. Sub::Spec::HTTP::Server).
Return formatted data structure as PHP serialization format. Currently there are no known options.
Data::Format::Pretty
Steven Haryanto <stevenharyanto@gmail.com>
This software is copyright (c) 2011 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.