

![]() |
|
Corresponding text on pages 178-181. |

Here is some sample Perl:
#!/usr/bin/perl
$dufous = "Rholl used to use Perl";
print dufous;

ASP(Active Server Pages) have become more and more popular on Windows webservers since the turn of the century(2000). ASP is Microsoft's answer to the open source CGI protocol that was popular in the 90's. Generally ASP only runs on Windows servers however Windows servers are very common. The typical language for writing ASP is VBScript, Visual Basic Script. Here is some sample VBScript:
Response.Write vbTab &
& vbCrLf For Each Field in myRecordset.Fields
Response.Write vbTab & vbTab &
Response.Write strAltColor Response.Write & Field.Value & & vbCrLf
Next 'Field
Response.Write vbTab &
vbCrLf myRecordset.MoveNext Loop
Whether you use ASP or CGI usually depends on the type of webserver you use. ie Are you a Linux/Unix person or a Windows person. Most web hosting companies give you a choice of server types so if you get used to one dynamic server side scripting language you usually stick with it.