Skip Menu |

This queue is for tickets about the CGI-Application-Plugin-AnyTemplate CPAN distribution.

Report information
The Basics
Id: 37999
Status: resolved
Priority: 0/
Queue: CGI-Application-Plugin-AnyTemplate

Owner: Nobody in particular
Requestors: blackbird [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.18

Subject: Clone vs. Clone::PP (Patch)
Download (untitled) / with headers
text/plain 552b
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
Download (untitled) / with headers
text/plain 502b
Hi Bianka, Thank you for your ticket and for the patch. This should be resolved in 0.18. Note that there doesn't appear to be a way to indicate to Module::Build that the module can use either Clone or Clone::PP - that it requires one (but not both) of them. So for now, Clone is still listed as a prerequisite. But if you install Clone::PP, and then choose not to install the required Clone module, the module will fall back gracefuly to Clone::PP and the tests will still pass. Michael

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to