Subject: | docs of plugins() searching each time |
Date: | Sat, 26 Feb 2011 09:22:58 +1100 |
To: | bug-Module-Pluggable [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
Does the plugins() func search the relevant directories each time?
I didn't at first realize that.
It'd be good if the docs made that clear, and perhaps show an example of
how you might find the plugins only on first use, or some such, if you
don't think you need to search for new stuff on every call.
I expect searching each time vs just once both have their uses. In a
long running program perhaps a search would be good to pick up new
stuff, but if doing repeated number crunching or display or something
then I expect once-only would be enough.