But that's because I chmod'd a couple of Cache directories in /usr/local/ to
777 so they could be writable to by apapche 2.2. I don't think that can be
the cause because I did the same in /opt/local/ where my working copy of
perl is & TM returns any output from any script fine if I supply the correct
shebang line `/opt/local/bin/perl`

I recommend changing the group of those files to Apache's group ('www' on OSX I believe) and making the files group writable but not writable by everyone.  It's safer that way.