Wow, this is getting really long. Why don't you try just running the script on the command line or
. You are really wasting lots of time with a simple error. perhaps you should consider reading up on the topic instead of guess-and-check. You will want to find the directory of the modules with the %Config() hash. If you don't have the required modules, then use the CPAN module to download and install it. Also, you might find generating a graph in Perl simpler than in a Java applet or servlet.