Hello,
I am fairly new to Perl and will probably say naive and incorrect things in this message.
From what i understood, the Toolkit module (that i have just tried yesterday for the first time) enables to replace a long list of "use" lines by
use Toolkit
It is especially nice because it can determine whether some functions are used or not in the code, and "use" them only if this is the case.
This seems really great, but
to use it, you have to write the list of used modules in several "configuration" files that you put in different parts of the $PERL5LIB/Toolkit directory.
This seems to make it slightly complicated to install a module that uses Toolkit on a new computer, as you will have to copy all the "configuration" files in the right place.
Ok, it is not THAT complicated. But it would be nice if it wasn't needed.
Please, tell me if what i said make sense, or if there is something i didn't understand about the Toolkit module.
Two naive ideas : it could be nice if...
1. the Toolkit module could save this list of modules somewhere, carry it around, and install them wherever i will install my module. I don't imagine at all how to do this, though.
2. the Toolkit module could be "switched off" by adding the 'switch off' argument
which would comment theuse Toolikt 'switch off'
line, and add the list of used modules and functions underneath.# use Toolikt 'switch off'
Thus, the developers of a particular module could use Toolkit during development, and "switch if off" before releasing their module, which would simply replace the "use Toolkit" line by the appropriate lines, for each .pl and .pm file (as they don't all use the same modules and functions).
Or, (2 bis) Toolkit could be distributed with a script that would enable to do this for all source using Toolkit in a directory.
Does this make any sense ? If not, i'll be happy to learn something about how to use Toolkit properly :-)
In reply to ideas to improve the Toolkit module ? by mascip
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |