Variante 2
Du bindest dein script als bild ein:
<img src="script.pl">
oder
document.write('<img src="script.pl">');
z.B.:
my $no_gif = unpack('u',q°K1TE&.#EA0
!(```````````"'Y!
$!````+``````!$```("1`$`.P
°);
my $cl =length($no_gif);
print "Content-length: $cl\n";
print "Content-type: image/gif\n\n";
print "$no_gif";
Grüße Oesi