in reply to Re^2: teach me Chart::Pie
in thread teach me Chart::Pie

$chart->gif('pie.gif');
If you RTFM of the module you are using, and the modules it uses, you'll see that this code makes a file. Nothing in there (nor in the module developer's head!) says that this module will be used to generate a web page. Your webserver is loading file 'index.html' (or whatever). If you had told the webserver to load 'pie.gif', it would have done so and you would have gotten what you expected.

Let me say that I ++ you because you kept on trying after asking your question here. Perl by itself is a BIG subject and tossing in UN!X, Apache, and the Web as well makes it truly complex, and we all get bitten by the multiple levels of interaction once in a while. (At least, I know I do!). You will be much rewarded as a coder if you take the time and patience to think through what's happening when you don't get what you expect. :D