Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • For test debugging (which is what I care about the most, since I spend sometimes hours a day in the perl debugger in tests) I used to do both by putting a sensitive BEGIN block inside the test script itself.

    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 [], which just Does What You Mean for debugging.

    It runs Makefile.PL if needed, or Build.PL if needed, or runs make if needed, it checks for and sets up blib, it makes sure the tests run from the distro root if you are trying to run the tests from inside t.

    So I just run "pler 1" and it does "cd ..; Makefile.PL; make; perl -Mblib t/01_load.t" or whatever it is that is needed to run the tests "properly".