I was under the impression that this feature was kind of a pipe dream. If you have a situation where this would be immediately useful to you, write a custom import() method in your module that will take arguments, like this:
use PG::Module qw(less_memory);
| [reply] [d/l] |
perrin, I don’t need this feature immediately, this is simply a dream on top of another dream, and hoping the 1st dream be more wonderful.
However, I really love your idea. It is a good suggestion to anyone who wants the feature now. Thank you very much.
| [reply] |
I know this is dirty, and incomplete. You can check %INC to see if less has been used (just not how). I do agree a good use for less would be something like a @less::requested var to let modules check what was requested less of. This would allow for a standard interface rather than an qw(less_memory) here and a qw(lite) there. Something a bit more standard, and a little less author's choice. Not that this comes up often, but when else do a half dozen line make such a diffrence ?
Just my €0.02
from the frivolous to the serious | [reply] [d/l] [select] |