in reply to disable taint for just one sub

Lots of good advice given so far. The only thing I would add would be that you could try and explicitly set your PATH and IFS environment variables, and clean out other naughty variables (this last idea pinched directly from perlsec).

$ENV{PATH} = '/bin:/usr/bin'; $ENV{IFS} = ''; delete @ENV{qw/CDPATH ENV BASH_ENV/};
--
g r i n d e r