Perl Topics





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
Perl Tutorial
Introduction Introduction
Installing Perl Installing Perl
Basics of Perl Basics of Perl
Scalar Variables Scalar Variables
Operators Operators
Control Structures Control Structures
Lists Lists
Array Array
Arrays Manipulation Arrays Manipulation
Arrays Functons Array Functions
Hash Hash
Hash Functions Hash Functions
String Functions String Functions
Regular Expression Regular Expression
Regular Expression Functions Regular Expression Functions
Numerical Functions Numerical Functions
List Functions List Functions
User Defined Function User Defined Function
File Handling File Handling
Forums Ask Your Doubts
Feedback Feedback
 






outsourced web hosting support

Perl Basics - Help Tutorial


Tutorials Perl

Topic
How can I use Perl?
What are the basis of perl?


Explanation

An example to help you know how a Perl program is executed, we will try to print a string "Hi, How are You". Just open a notepad or wordpad type in the following code

Sample Code:
    #! C:\programfiles\perl\bin\perl
    print "content-type: text/html\n\n";
    print "<b>Hi, How are You</b>";
Result:
    Hi,How are You

In the above example first line specifies the path in which perl is installed, to find this path search for the file "perl.exe" from the command prompt, the second line in the code is added when there is a need to print a string. After this its easy to add any html tags using the print statements using the double quotes

While saving the file save it with .pl or .ple extension, run the file from your browser.

Note:The path in which Perl is installed will differ from system to system.


Go ahead with this help tutorial. As you read more you will understand it well.

Note:This tutorial assumes that your server has perl installed in it.








A Note
Simple introduction, basic CGI perl programming codes with examples. Do send your feedback or suggestions on this tutorial. This is a copyright content.

Other Links

web hosting