Stories
Slash Boxes
Comments
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.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Is importing a bunch of functions one may never use. The unnecessary namespace pollution makes me cringe.

    • So what? Besides, you use Test::More already, right? I'm sure it exports plenty of functions you don't use. Plus, you can exclude functions you don't want.

      use Test::Kit
          'Test::Something' => {
              # or a scalar for just one
              exclude => [qw/ list of excluded functions/],
          },
          'Test::Something::Else' => {
              # takes a hashref
              rename => {
                  old_test_function_name => 'new_test_function_name',
              },
          };

      This might look familiar.

      • I didn't say I was rational about it. :]

        But even if T::M puts unused stuff, that's no excuse for piling in more.

        • But you don't have to pile in more. You can specifically exclude anything you don't need. That's not something you can do with just "use"ing the modules :)