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

use Perl Log In

Log In

[ Create a new account ]

Alias (5735)

  (email not shown publicly)

Journal of Alias (5735)

Friday July 21, 2006
12:52 PM

pler 2

[ #30370 ]

Sometimes documenting your work in POD and/or places like here can have positive side effects.

In much the same way as teaching something to someone else helps you learn it more effectively, telling someone else exactly what your program is meant to do helps you too.

And so it was with pler.

Until I wrote that the main idea of pler was to DWIM with as little typing as possible, it hadn't occured to me that it might be a good idea to allow this to be taken to almost rediculous lengths.

So I've now added the ability for pler to just try and Do What You Mean if you don't give it a full test script.

Normally you would invoke pler with something like this

    pler t/02_config.t

However, if you DON'T give pler something with .t on the end, and the file name you give it doesn't exist, pler will trawl through your t directory and look for something containing what you did give it.

Obviously, sometimes that means more than one script, so pler will tell you what they were.

    adam@pita:~/dist$ pler 0

    More than one possible test


And so now we can just go with something unique to the script we want.

    adam@pita:~/fids3/trunk/ITS-SIN-FIDS-ELS$ pler 2

    Loading DB routines from version 1.28
    Editor support available.

    Enter h or `h h' for help, or `man perldebug' for more help.

    main::(t/02_config.t:27): my $config = {};

That means we've now made all the following equivalent

    > make && perl -Mblib -d t/02_config.t
    > pler t/02_config.t
    > pler 2

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.