Hi Ashura,
ach so.
Aufruf:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test</title>
</head>
<body>
<img src="http://localhost/cgi-bin/test.pl" width="1" height="1" border="1" alt="">
</body>
</html>
Code Testskript:
#!/usr/bin/perl -w
use warnings;
use CGI::Carp qw(fatalsToBrowser);
print "Content-type: text/plain", "\n\n";
print "hello world :-)";
1;
Wenn ich direkt im Browser http://localhost/cgi-bin/test.pl eingebe, klappt das Skript.