Tutorials for photoshop, javascript, php, html, css, flash, and more!

tutorials for photoshop, javascript, and php
   The Machine | Search for a cog | Submit a cog

This Part 5 of the Perl 101 series introduces you to subroutines and teaches you how to structure your code for maximum reusability. Also included: return values, my() and local() constructs, and a marriage proposal.


Find out what those server response codes like 401, 404, 500 mean. It can help you troubleshoot minor problems – knowing these are a must if you’ll be working on programs that run on a server.


This is a list of common mistakes that people make when writing Perl scripts and suggestions on how to fix them. Included are general help tips on how to debug – very important particularly for beginners at programming. This list is based on the author’s personal experience and complaints found on newsgroups/message boards.


This note describes how to get information about a remote user from within a CGI-bin script, and lists the information available.




Hints and tips on debugging Perl CGI scripts and identifying some possible causes of server errors.


One of the methods that the web server uses to pass information to a cgi script is through environmental variables. These are created and assigned appropriate values within the environment that the server spawns for the cgi script. This page highlights some of the most commonly used ones, along with a brief description and notes on possible uses for them.


This article provides a short CGI program that can print every environment variable it knows.




An introduction to sorting, and how to write your own sorting functions easily with perl. Includes some very common examples of sorts.


In this Part 10 of “The Perl You Need to Know” series, you will be shown how to work with Perl’s list and hash data structures.


In this Part 21 of “The Perl You Need To Know” series, it covers the Benchmark module — the handy Perl stopwatch that allows you to time, optimize, and slim down on code.