Switch layouts home | FAQ | | P1 | P2 | P3 | P4 | P5 |  | A1 | A2 | A3  | | B1


1. Create a copy or a link to PB. It may be either a hard link or a symbolic link depending on your preferences and settings of the web server. The name of the link can be anything as long as the web server is going to run it as a cgi script. For example, p3.cgi
ln ../cgi-bin/pb.pl ./p3.cgi    or
ln -sf ../cgi-bin/pb.pl ./p3.cgi

2. Create a project configuration file. The name should be cgi-script's name + ".pm". For p3.cgi this file should be ./p3.cgi.pm

$var1="The world is a wonderful place to be";

sub getvalue
return("Think positive!");

3. Create an html-template file, p3-home.html
<!%set $var2="don't you think?"%>
<!%set $var3=`ls -F sampledir`%>
<H3><!%show $var1%></H3>
<b><!%show $var2%></b>
Listing of "sampledir" directory:
<pre><!%show $var3%></pre>
A couple words from subroutine 'getvalue':
<br><b><!%show &getvalue%></b>

4. This web project is complete. Check it out: