In your code you don't show how you set $ENV{PATH} to a fixed value - I would start with that...That's because I don't!
That means you haven't thoroughly read perlsec or Re: When not to use taint mode. (Yes, the latter contains a relevant update. It was added a few minutes after posting, three weeks ago.)
Alexander
In reply to Re^3: Insecure CPAN module in taint mode
by afoken
in thread Insecure CPAN module in taint mode
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |