Clone::More is a Perl module that can copy Perl data structures.
SYNOPSIS
use Clone::More qw( clone );
my $structure = [
{ 'key' => 'value' }
];
for my $set ( @$structure ) {
my $clone = clone( $set );
for ( keys %$clone ) {
print "Everything matches" if ( exists( $set->{$_} ) && $set->{$_} eq $clone->{$_} );
}
}
This is intended to act as a utility in order to natively clone data structures via a simple Perl interface. Will ensure that all references will be separated from the parent data strure, yet kept relative to the new structure (if need be).
Please take a look at the WARNINGS, GOTCHAS and FUTURE DEVELOPMENT sections, as resources to see if this module is fully capable of doing everything that you want it to do (and it will do most everything).
Product's homepage
Requirements:
· Perl