I have been going through perl with a debugger trying to find out what the heck is going on with ENV. I do know why I like Perl, and this is a big part of it. :-)
It seems to me that elements from ENV should be tainted, but they aren't in some cases, so I had to add that in one place, which is fine, but I thought I shouldn't have to, and I tried to figure out why. It was a learning experience, I suppose. Ugh.