Skip Menu |

This queue is for tickets about the namespace-autoclean CPAN distribution.

Report information
The Basics
Id: 122127
Status: open
Priority: 0/
Queue: namespace-autoclean

People
Owner: Nobody in particular
Requestors: perl [...] toby.ink
Cc:
AdminCc:

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



Subject: use Sub::Util instead of Sub::Identify
Sub::Util is bundled with recent versions of Perl, and is available on CPAN for older versions of Perl. Sub::Name admittedly has better test results on Perl 5.6 and 5.8. It should be possible to use eval to pick one or the other depending on availability, and do some dynamic config in Makefile.PL to add either Sub::Util or Sub::Name to namespace::autoclean's dependencies based on $]. I'd be happy to write a patch for this if it would help.
On 2017-06-18 03:02:44, TOBYINK wrote: Show quoted text
> Sub::Util is bundled with recent versions of Perl, and is available on > CPAN for older versions of Perl. > > Sub::Name admittedly has better test results on Perl 5.6 and 5.8. > > It should be possible to use eval to pick one or the other depending > on availability, and do some dynamic config in Makefile.PL to add > either Sub::Util or Sub::Name to namespace::autoclean's dependencies > based on $]. > > I'd be happy to write a patch for this if it would help.
Same as in https://github.com/moose/Moose/pull/127 -- Sub::Util isn't quite at the same point Sub::Name is, so we need to wait until it catches up before it's truly safe to switch.