Subject: | Use Clone::PP as a fallback |
It would be nice to offer an optional fallback to Clone::PP in case
someone wants to use Hash::Merge, but can't install Clone. (On a web
server, for example.)
To do this, just change sub _my_clone to:
if( $clone_behavior ) {
## patch
eval "require Clone;";
if ( $@ ) {
eval "require Clone::PP";
}
}
While Clone::PP is slower than (XS) Clone, it still works. :)