Perl

Perl Camel © O'Reiley

I like perl but allways use strict. Here is a PDF about perl and the sample programs.

CGI

Environment: remote addr in CGI
print $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*//;