in reply to ideas to improve the Toolkit module ?
Still at a fairly early stage of development, but check out my module Syntax::Collector. The idea is that you create a module like this:
package MASCIP::Stuff::A; our $VERSION = 1; use Syntax::Collector -collect => q{ use common::sense 3.0 ; use Data::Dumper 0 qw/Dumper/; use IO::All 0 qw/io/; }; 1;
And then when you are writing code, just do:
use MASCIP::Stuff::A 1;... and Syntax::Collector will magically enable everything for you.
The advantage of Syntax::Collector over other modules that do the same thing is this. Grepping through your source code for lines that match /^use/ will reveal the pre-requisites. Most other module bundling techniques tend to obscure which actual modules are being used, which can make automatically determining pre-requisites difficult.
|
|---|