|
|
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.
|
|
|
|