Perl

It’s a Wonderful CGI Script! With your script all written and your database in place, you’re probably chomping to see it all work. But the most important thing to remember with CGI scripts is to make sure they’re stable. Always have a trusty engineer take a look at your scripts ...

Read More »

The CGI Difference

The CGI Difference CGIs process input differently than old Perl scripting does – and this, my friends, is the only difference you’ll find between the two. Once the CGI scripts process the input, it becomes data, which is treated pretty much the same way by both CGI and Perl scripts. ...

Read More »

Turning Perl into CGI

Turning Perl into CGI So now you have the Perl basics down, and you’re no doubt itching to put that know-how to work. Well, being acquainted with Perl’s one thing, but turning Perl into a keen CGI script is a whole ‘nother ball of wax. Hence, Lesson Two of Colin’s ...

Read More »

Additional Functions

Additional Functions Great, you’ve almost got it. Just look at you! My little Perl Jedi! Of course, even a Jedi needs a few weapons. Here’s a few extra things to help you write the perfect Perl script to master the Force and all that garbage. Splitting Splitting is a function ...

Read More »

Perl With This Loop, I Thee Wed

With This Loop, I Thee Wed So you know if/else, you know variables, and you know assignments, but I bet you don’t know loops. That’s right, my friend, you’re not there yet. Even the Karate Kid had a few things to learn from Mr. Miagi. Anyone who has used a ...

Read More »

Perl Operators

Perl Operators What Number Please? Without operators, there is no point to scripting. Assigning values to variables and stuff would serve no purpose, unless you just wanted to rename the number one $that_number_that_I_can_never_remember – and we all have to admit that’s a little bit stupid, right? There are three different ...

Read More »

Scalers, Arrays, and Associative Arrays

Scalers, Arrays, and Associative Arrays All variables are one of three different types:scalar, array, or associative array. What’s the difference? A scalar variable is the catch all. It can hold numbers, letters, phrases, whatever. It always has a “$” (dollar sign) before it. So if I wanted to assign a ...

Read More »

Perl – The Rules of the Road

The Rules of the Road What do you need to know? It’s simple. Just follow these basic rules. Rule #1: Always put this line at the top of your Perl script, no excuses: #!/usr/local/bin/perl It tells the server running your script that what follows isn’t Russian on acid but Perl. ...

Read More »