Content-type:image/gif #### #!/usr/bin/perl -w use strict; if ($ENV{'MOD_PERL'}){ print "Content-type:image/gif\n\n"; #my image output will go here }else{ print "Content-type:text/html\n\n"; print "MOD_PERL is off"; } exit; #### Alias /perl/ /home/httpd/perl/ SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI PerlSendHeader off