Hello, i am completely new to perl.
i have setup mod_perl on apache, and i have a problem:

i have to files:

test1.pl is:
Code:
#!/usr/bin/perl
print "Content-type: text/plain\n\n";
print "hello world from perl\n";
and is here: http://streamkid.de/~alex/test1.pl

test2.pl is:
Code:
#!/usr/bin/perl

print "Content-type: text/plain\n\n";

use Net::MySQL;
print "hello world from perl\n";

print "now connection to mysql database:\n";

my $mysql = Net::MySQL->new(
	hostname => 'host',
	database => 'database',
	user => 'user',
	password => 'password'
);
$mysql->query(q{SELECT content FROM welcome WHERE id="1"});
my $record_set = $mysql->create_record_iterator;
while (my $record = $record_set->each) {
	printf "einai: %s\n\n", $record->[0];
}
$mysql->close;
print "succesfully executed";
and is here: http://streamkid.de/~alex/test2.pl

the problem:
the first one executes and displayes the message on my firefox,
whereas the seconds wants to get downloaded.

what am i missing?