Posts Tagged perl

How to deploy your own free WordPress development sandbox on Windows XP

Posted June 11, 2009 at 5:58 pm in General | No Comments

Wordpress, WampServer, Geany, GIMP

I recently upgraded my computer hardware due to aging components like AGP, 1GB of RAM, single-core processing, SATA 1.5GBs, and a power supply that lacked a few necessary power wires required for new components. That being said, I’m still stuck in the old world when it comes to operating systems. I use Windows XP Professional because I can’t afford to upgrade to Vista, I don’t want to learn Vista, and I have yet to find a reason to upgrade. A dual-boot system with Windows XP and Ubuntu 9.04 for every day computing is more than suitable for my needs.

Continue reading..

Perl Fundamentals

Posted August 21, 2008 at 10:46 pm in Programming | No Comments

Perl started out as the “Swiss army knife” of computer languages and was used primarily by system administrators, but over time it’s grown into an immensely robust language used by web-developers and programmers worldwide.

The Comprehensive Perl Archive Network is a great resource for already developed Perl modules. More than likely someone has created a module to perform the task you’re trying to accomplish.

Perl programs should start with the following line of code:

#!/usr/bin/perl

This line of code passes the rest of the code to the Perl interpreter, which is located at /usr/bin/perl (depends on your configuration).

A Perl comment uses #.

Arithmetic operators in order of precedence: EXPONENT **, (Unary Minus), MULTIPLY *, DIVISION /, ADD +, and SUBTRACT -. The MODULO % operator has the same precedence as * and /.

Bitwise operators are: AND &, OR |, XOR ^, and NOT ~.

Comparison operators: EQUAL TO ==, NOT EQUAL TO !=, LESS THAN <, GREATER THAN >, LESS THAN OR EQUAL TO <=, and GREATER THAN OR EQUAL TO >=.

Balance operator: <==>. This operator will point to the smaller number by indicating a 1 if the smaller number is on the right, -1 if the smaller number is on the left, or 0 if they are equal. Think of it like a number line as the arrows represent numbers increasing and decreasing to infinity and the equal signs representing the line, < -1 = 0 = 1 >.

Boolean operators: AND &&, OR ||, and NOT !.

Page 1 of 11