Skip Menu |

This queue is for tickets about the Module-Find CPAN distribution.

Report information
The Basics
Id: 83596
Status: resolved
Priority: 0/
Queue: Module-Find

People
Owner: crenz [...] cpan.org
Requestors: NEILB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.11
Fixed in: 0.12



Subject: Documentation doesn't describe behaviour if a module fails to load
Hi, I just had to look at the source to find out what happens if you call useall() or usesub() and one of the modules found fails to load. I think it would be helpful to mention the behaviour in the doc. Cheers, Neil
Thank you for your contribution, and your patience. I have updated the documentation in v0.12. I wonder whether it would be useful to have functions that try to load as many modules as possible, instead of dying?
Show quoted text
> I wonder whether it would be useful to have functions that try to load > as many modules as possible, instead of dying?
Yes. This could be another function which would essentially be use-as-many-as-possible-of '...'. It could return two arrayrefs: the first being a list of the modules loaded, and the second being a list of the modules that failed to load. Or it could be an option to useall and usesub, that specifies the behaviour you want on failure: (a) die, (b) return a list of the modules loaded and the one that failed, or (c) continue regardless.