Programming
All tutorials in Programming
Sort By:    Name   Rating   Views  Comments    Date 
Browse Pages :    <<  <  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  >  >> 
Using Octal and Hexadecimal Notation
Submitted 28 April 2008

If you are not familiar with octal and hexadecimal notations and would like to learn more, read the following sections. These sections explain how to convert numbers to different bases. If you are familiar with this concept, you can skip to the section called "Character Strings."

Views: 350 Comments: 0

The conditional statements you've seen so far enable the Perl interpreter to decide between alternatives. However, each statement in the Perl programs that you have seen is either not executed or is executed only once. Perl also enables you to write conditional statements that tell the Perl interpreter to repeat a block of statements a specified number of times. A block of statements that can be...

Views: 580 Comments: 0
The if Statement
Submitted 28 April 2008

The first part of an if statement-the part between the parentheses-is the conditional expression associated with the if statement. This conditional expression is just like any other expression you've seen so far; in fact, you can use any legal Perl expression as a conditional expression. When the Perl interpreter sees a conditional expression, it evaluates the expression. The result of the...

Views: 344 Comments: 0
Expressions
Submitted 28 April 2008

Now that you know a little more about operators, operands, and how they both work, it's time to learn some more terminology as well as the details about exactly what Perl is doing when it evaluates operators such as the arithmetic operators and the assignment operator. In Perl, a collection of operators and operands is known as an expression. Each expression yields a result, which is the value you...

Views: 289 Comments: 0
Performing Arithmetic
Submitted 28 April 2008

When you type 10 and press Enter, the line of input assigned to $originaldist consists of three characters: the 1, the 0, and a newline character. When chop is called, the newline character is removed, and $originaldist now contains the value 10, which can be used in arithmetic operations.

Views: 676 Comments: 1

This section tells you more about variables such as $inputline and how to assign values to these variables.The variable $inputline is an example of a scalar variable. A scalar variable stores exactly one item-a line of input, a piece of text, or a number, for example. Items that can be stored in scalar variables are called scalar values.

Views: 356 Comments: 0
Line 3: Writing to Standard Output
Submitted 28 April 2008

This statement refers to the library function that is called print. Library functions, such as print, are provided as part of the Perl interpreter; each library function performs a useful task.The print function's task is to send data to the standard output file. The standard output file stores data that is to be written to your screen. The standard output file sometimes appears in Perl programs...

Views: 290 Comments: 0

The line of code you have just seen is an example of a Perl statement. Basically, a statement is one task for the Perl interpreter to perform. A Perl program can be thought of as a collection of statements performed one at a time. When the Perl interpreter sees a statement, it breaks the statement down into smaller units of information. In this example, the smaller units of information are...

Views: 275 Comments: 0

The first character in the line, the # character, is the Perl comment character. It tells the system that this line is not an executable instruction. The ! character is a special character; it indicates what type of program this is. (You don't need to worry about the details of what the ! character does. All you have to do is remember to include it.) The path /usr/local/bin/perl is the location of...

Views: 316 Comments: 0
Running a Perl Program
Submitted 28 April 2008

Using your favorite editor, type the previous program and save it in a file called program1_1. Tell the system that this file contains executable statements. To do this in the UNIX environment, enter the command $ chmod +x program1_1 Run the program by entering the command $ program1_1

Views: 341 Comments: 0
What Is Perl?
Submitted 28 April 2008

Perl is an acronym, short for Practical Extraction and Report Language. It was designed by Larry Wall as a tool for writing programs in the UNIX environment and is continually being updated and maintained by him. For its many fans, Perl provides the best of several worlds

Views: 400 Comments: 0
Reading a Database
Submitted 24 April 2008

Here it is broken down: The first two lines declare the variables Conn and SQLTemp. The next six lines open a connection to your database, and get all the rows from the table. The following Do While Not loop lets u display the data inside the row. The next four lines print out the value of each column in that row. The last bit moves to the next row, ends the loop, and closes the connection to the...

Views: 545 Comments: 0
Installing ASP on your own computer
Submitted 24 April 2008

If you run Windows 95, Windows 98 or Windows NT 4.0 Workstation you can install Personal Web Server (PWS). PWS is a smaller scale little brother of Internet Information Services (IIS) though still fully functional. As Personal Web Server (PWS) is not shipped with Windows NT or with Windows 95 you will have to download "Windows NT 4.0 Option Pack" from Microsoft. To download the Windows...

Views: 736 Comments: 1
Counter in ASP
Submitted 24 April 2008

Learn how to make a hit counter in ASP. A hit counter is an essential part of a site to know how many people are coming to site. Here is an easy way to make a counter. All you need is access to ASP and be able to give a write access to a directory. We're going to save the amount of hits in a .txt file so that we won't need to worry about database connections.

Views: 2603 Comments: 1

AIM profile designs provide us with new possibilities. And this Aim Profile Screenname Viewer tutorial will show you how to make a script to see who has seen your AOL Instant Messenger profile.First, make a file called "sn.html" inside a folder (I've chosen my database folder even though this is a flat file). Leave it blank. Be very attentive while making changes to AIM profile...

Views: 9369 Comments: 0
Browse Pages :    <<  <  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  >  >>