Tech-FAQ Tip: Click Here to Check for PC Errors

PERL Tutorials

 

Installing a Perl Script Tutorial

A tutorial that shows how to install a simple Perl script so that you can use it on your web site

To learn how to get a Perl script installed and running, we'll use the simple script below. When it is run, it will produce a web page with some simple text on it. To begin, copy and paste the script below into your favorite text editor (Notepad, Word, etc).....

Perl Variables Tutorial

A tutorial that tells how to declare variables in Perl and use them in your scripts

Using a variable in Perl isn't as bad as it seems. Basically, you just define the variable and then use it. However, there are some things you need to know. First, a regular variable in Perl is always preceeded by the $ sign. ....

Print Output Tutorial

A tutorial that shows how to print output to the web browser with the print statement

A simple Perl script like the one we just used simply writes output to the browser. To better understand how this is done, we need to look at a few things involved in printing output to the web browser...

Perl Operators Tutorial

A tutorial that shows how to use Perl operators for math, assignments, and incrementing

In Perl, there are different versions of the operators for numbers and strings. For instance, if you want to compare a number, you would use a traditional symbol such as <, >, and so on. However, when you compare two strings, the less-than and greater-than signs are not used. Instead, a special version is used to compare strings....

Using Arrays Tutorial

A tutorial that shows how to use arrays to store a group of similar variables

An array is basically a way to store a whole bunch of values under one name. These values usually have something in common, and the array makes the values easier to access and manipulate- especially if you are using loops....

Reading From Files Tutorial

A tutorial that shows how to read data from a flat text file and make use of it

Our first step is to create a file so we have something to read. Suppose we want to store a few pro wrestler's names and some other data about them, like their crowd reaction and favorite moves...

Appending Files Tutorial

A tutorial that shows how to add data to the end of a file

When you append a file, you simply add an extra line (or more) at the end of the file, after everything that was already in there. This is useful if you want to add information to a file but not delete other information in it...

Writing to Files Tutorial

A tutorial that shows how to overwrite the contents of a file with new information and how to delete a file

Writing to a file erases everything that was in the file previously and writes the new information over it. Before you try this on any important information, you should create a test file to make sure these commands work properly....

File Checking Tutorial

A tutorial shows how to check for file existence and other file information

There are some short expressions in Perl that allow you to test files, which is handy if you want to check what a file allows before using it, or if it exists at all. We'll look at a few of the common tests in this section....

Reading Directories Tutorial

A tutorial that shows to read the contents of a directory

Opening a directory is just like opening a file. The only difference is you will probably need to follow the server path to get to the directory you want...



Bookmark PERL Tutorials

Latest Blog Posts





Copyright 2008 Tech-FAQ. All rights reserved.