Lamentably, this solution does not quite address the situation that this monk raises. The
Taint module does not turn on taint checks. It's primarily a convenient way to test for tainted data. This module does have allow
use Taint qw(allow_no_taint);, but this is not likely to have much benefit. As far as I can tell, this allows you to write code which may not have taint checks enabled, but still test to see whether or not data coming into the program is tainted (for instance, if you're writing a module used in a CGI script). The anonymous monk needs a way to turn on taint checks for h(?:is|er) scripts without impacting the way older scripts run.
Since I haven't used this module before, my understanding of the docs is impaired :) Corrections welcome.
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.