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).