When testing/playing with a distribution, one usually runs:
$ perl Makefile.PL; make
$ perl -Mblib demo.pl
# or (with tests)
$ prove -b test.t
Sometime the make (or./Build) gets annoying and a shortcut is nice:
$ perl -Ilib demo.pl
# or
$ prove -l test.t
However, there are a bunch of reasons not do that. Among them:
-Ilib won't work for modules with XS parts (it will use installed XS components or fail to load)
lib/ layout (with modules not in the MANIFEST and things like that)
At the end, we conclude that working under -Mblib is safer (and closer to release conditions) than playing with -Ilib.
What I did... (Score:1)
Mostly it just annoys me there is so much typing to do it properly (-Mblib).
It was getting really annoying to have to have special code in test scripts to avoid lots of typing.
So in the end I decided I needed to make a better tool instead, and created pler [cpan.org], which just Does What You Mean for debugging.
It