Skip Menu |

This queue is for tickets about the threads-shared CPAN distribution.

Report information
The Basics
Id: 72558
Status: resolved
Priority: 0/
Queue: threads-shared

People
Owner: Nobody in particular
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.40
Fixed in: 1.41



Subject: Ignore glob elements in shared_clone()?
Because globs cannot be shared, shared_clone() cannot be used on a structure that might contain globs. This makes sharing objects which might contain filehandles dicey. I don't know if it's possible, but what if instead of choking, shared_clone() just ignored globs? It left them unshared, whatever that means for a glob. For filehandles this is at least usable behavior. It allows users to have objects which contain globs. As this behavior might change in the future, maybe shared_clone() would take an "ignore_globs" flag, default to false (the current behavior).
I have submitted a patch to 'blead' for this. When accepted, I'll release an update to CPAN. On 2011-11-19 22:11:44, MSCHWERN wrote: Show quoted text
> Because globs cannot be shared, shared_clone() cannot be used on a > structure that might contain globs. This makes sharing objects which > might contain filehandles dicey. > > I don't know if it's possible, but what if instead of choking, > shared_clone() just ignored globs? It left them unshared, whatever
that Show quoted text
> means for a glob. For filehandles this is at least usable behavior.
It Show quoted text
> allows users to have objects which contain globs. > > As this behavior might change in the future, maybe shared_clone()
would Show quoted text
> take an "ignore_globs" flag, default to false (the current behavior).
On 2012-09-05 13:32:56, JDHEDDEN wrote: Show quoted text
> I have submitted a patch to 'blead' for this. When accepted, I'll > release an update to CPAN.
Done.