in reply to LWP running as cgi
you might check that on the command line using
strace -f -o /tmp/bla perl <yourcgi> grep kerberos /tmp/bla grep usr/local /tmp/bla ... [download]