View Single Post

  #2 (permalink)  
Old 01-31-2005, 07:10 PM
monk's Avatar
monk monk is offline
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

First cgi-bin program written in perl are in text format and not the compiled one as far as i know it. Here is simple example

Code:
#!/usr/local/bin/perl
print "Content-type: text/plain\n";
print "Hi\n I am the monk\n";
Then save it and setup executable permission on it using
chmod +x my.perl

Place program in cgi-bin directory.

Yes you may need to point correct directory in httpd-conf.
Reply With Quote