Skip Menu |
 

This queue is for tickets about the Hash-Merge CPAN distribution.

Report information
The Basics
Id: 39183
Status: resolved
Priority: 0/
Queue: Hash-Merge

People
Owner: Nobody in particular
Requestors: blackbird [...] webbird.de
Cc:
AdminCc:

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



Subject: Use Clone::PP as a fallback
Download (untitled) / with headers
text/plain 407b
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. :)
Subject: Re: [rt.cpan.org #39183] Use Clone::PP as a fallback
Date: Thu, 11 Sep 2008 12:20:07 -0500
To: bug-Hash-Merge [...] rt.cpan.org
From: Dan Muey <webmaster [...] simplemood.com>
Download (untitled) / with headers
text/plain 862b
great idea, thanks! On Sep 11, 2008, at 8:59 AM, Bianka Martinovic via RT wrote: Show quoted text
> Thu Sep 11 09:59:05 2008: Request 39183 was acted upon. > Transaction: Ticket created by MAB > Queue: Hash-Merge > Subject: Use Clone::PP as a fallback > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: blackbird@webbird.de > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=39183 > > > > 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. :)
Subject: Re: [rt.cpan.org #39183] Use Clone::PP as a fallback
Date: Thu, 11 Sep 2008 12:21:07 -0500
To: bug-Hash-Merge [...] rt.cpan.org
From: Dan Muey <webmaster [...] simplemood.com>
Download (untitled) / with headers
text/plain 862b
great idea, thanks! On Sep 11, 2008, at 8:59 AM, Bianka Martinovic via RT wrote: Show quoted text
> Thu Sep 11 09:59:05 2008: Request 39183 was acted upon. > Transaction: Ticket created by MAB > Queue: Hash-Merge > Subject: Use Clone::PP as a fallback > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: blackbird@webbird.de > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=39183 > > > > 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. :)
I've just uploaded 0.12 to CPAN and it falls back to Clone::PP, thanks


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.