in reply to Insecure switch while working in ENV{PATH}
This is described in perlsec, in particular read the section "Cleaning Up Your Path".