Skip to content

Instantly share code, notes, and snippets.

@shoorick shoorick/p2yaml.pl
Last active Nov 29, 2018

Embed
What would you like to do?
Reserialize PHP-serialized data to YAML
#!/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
You can’t perform that action at this time.