Compress-BraceExpansion
view release on metacpan or search on metacpan
lib/Compress/BraceExpansion.pm view on Meta::CPAN
# list context - only really useful when being called
# within a recursion
return( $tree, $root );
}
return $root;
}
# given a data tree, a set of paths within that tree, and the depth
# beyond which they are all identical, clone the paths and relocate
# the identical branches on the POINTERS node. Remove the specified
# paths and replace them with a link to the new location.
sub _transplant {
my ( $self, $tree_h, $depth ) = @_;
my @nodes = keys %{ $tree_h };
my $id = $self->_get_new_pointer_id();
#print "\nID: $id\n";
my $pruned;
( run in 1.494 second using v1.01-cache-2.11-cpan-71847e10f99 )