|Do you know where your variables are?|
The missing link between "you may need to install the module" and "distribution installed" application is running!by Anonymous Monk
|on Oct 24, 2019 at 11:57 UTC||Need Help??|
You may try a perl app and see Can't locate Foo/Bar.pm in @INC (you may need to install the Foo::Bar module) (@INC contains: ...
So you install the Foo::Bar module and try again and see Can't locate Bar/Baz.pm in @INC (you may need to install the Bar::Baz module) (@INC contains: ...
So you install the Bar::Baz module and the application runs.
Module::Load::Conditional (core) can reduce the pain to:
Install required modules Foo::Bar Bar::Baz from CPAN? (y)/n y Use 1. cpan or 2. cpanm 1/(2) 2 Successfully installed Foo::Bar Successfully installed Bar::BazOr select 'n' for something more than @INC:
Install required perl modules: cpan Foo::Bar Bar::Baz cpanm -v Foo::Bar Bar::Baz Can't locate Foo::Bar Bar::Baz in @INC (@INC contains: ...Should perl be doing something like this on the core level?
Should monks adopt this mess or fold it into a module so it becomes a best practice?
How could this idea be improved?