Tag Archives: cgi

Web Applications on a Mac: Template Toolkit

Template Toolkit is useful when you need a Perl script to output HTML.  Instead of inline-ing the html code in Perl, an external template file is used.  Your script can pass variables and objects to the template, and they will be interpolated into the resulting html. Step 1) install template toolkit sudo cpan -i Template [...]
Posted in Software Development | Also tagged , , | Leave a comment

Web Applications on a Mac: hello world perl CGI

Step 1) enable web sharing a.k.a. Apache web server: go to system preferences => sharing, and click Web Sharing Step 2) make sure Apache is running by going to the address ‘http://localhost’ in your browser. You should see the message “It Works.” Step 3) In the default setup,  http://localhost/cgi-bin is aliased to the directory /Library/WebServer/CGI-Executable, [...]
Posted in Software Development | Also tagged , | Leave a comment