in reply to Debugging a module that's failing under taint mode
G'day Bod,
++ for seeking general understanding and guidance rather than putting your hand out for a specific solution.
As a general rule, you should be checking for taintedness in your module's tests, rather than discovering it later when you use the module. Given a module, Some::Module, which lives in /path/to/Some-Module/, I would typically have something very close to this as my first test (/path/to/Some-Module/t/00-load.t):
#!perl -T use strict; use warnings; use Test::More tests => 1; BEGIN { use_ok('Some::Module') } diag "Testing Some::Module $Some::Module::VERSION";
— Ken
|
---|