Perl
I like perl but allways use strict. Here is a PDF about perl and the sample programs.
CGI
Environment: remote addr in CGIprint $ENV{"REMOTE_ADDR"};
Parameter
my $cmd = param("cmd");
Program
use CGI::Carp qw(fatalsToBrowser warningsToBrowser); use CGI qw(:standard); print header;
Regular Expressions
Remove blanks on start of line$foo =~ s/^\s*//;