Reserialize PHP-serialized data to YAML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -0777 -n | |
=head1 NAME | |
p2yaml.pl - PHP to YAML reserializer. | |
=head1 DESCRIPTION | |
Reserialize PHP-serialized data to YAML | |
=head1 USAGE | |
./p2yaml.pl input.txt | |
=head1 AUTHOR | |
Alexander Sapozhnikov L<shoorick@cpan.org> | |
=cut | |
use strict; | |
use PHP::Serialization qw( unserialize ); | |
use YAML; | |
print Dump unserialize($_); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment