Last active
November 29, 2018 05:46
-
-
Save shoorick/4b84d4a8d8404ede668225de68fb96ba to your computer and use it in GitHub Desktop.
Reserialize PHP-serialized data to YAML
This file contains hidden or 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<[email protected]> | |
=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