Subject: | Clone vs. Clone::PP (Patch) |
You're using Clone for cloning data structures, but it's not part of the
Perl Core, and not everyone can build and install it to it's webspace,
so I made a small patch to allow AnyTemplate a fallback to Clone::PP.
Here it is:
## ----- Patch by Bianka Martinovic; use Clone::PP as fallback
## ----- to Clone
##use Clone;
if ( ! eval { require Clone } ) {
if ( eval { require Clone::PP } ) {
no strict 'refs';
*Clone::clone = *Clone::PP::clone;
}
else {
die "Neiter Clone nor Clone::PP found - $@\n";
}
}
~Bianka