in reply to Insecure $ENV{PATH}

Apparently you made your script setuserid (under Solaris or the like, Linux doesn't let you IFAIK) and thus turned on Taint mode.

Quick fix: explicitly set your env like this:

$ENV{PATH} = '/bin:/usr/bin:/opt/bin'; # adapt as necessary
HTH!

--
Cheers, Joe