Techcuriosity
Resources
Linux
• About Linux
• Linux Vs Windows
• Linux File Permissions
• Linux Directory Structure
• Linux Basic Commands
• Linux Commands Glossary
• Linux Server Admin Commands
• Advanced Permissions in Linux
 
Web Hosting
• About Web Hosting
• Windows Web Hosting
• Linux Web Hosting
• Ruby on Rails Hosting
• Web Host - Features
• DNS propagation Delay
• Wildcard DNS
• Addon, Parked & Sub Domain
• Top Web Hosts
 
Template Editing
• About Templates
• HTML Templates
• Photoshop Template
• Word Template
• CSS Template
• Oscommerce Template
 
Bioinformatics
• Introduction
• Sequence Analysis
• Bioinformatics Tools
• Bioinformatics Databases
• Bioinformatics Software
 
Free Perl Scripts for Bioinformatics
• Scripts Library
• Dna2protein.pl
• Dnafrequency.pl
• Dna2rna.pl
• Rna2dna.pl
• Count-aminoacids.pl
• Motifs.pl
• Reverse-complement.pl
• Mutation.pl
 
Curiosity Topics
• Online Data Security
• VDS Technology
• How Website Works?
• About Hacking
 
 
Home   |   About us   |   Services   |   Forum   |   Articles   |   Tutorials   |   Contact us
 


Gateway to End all your Curiosities in Information Technology and Bio-Informatics!!.. FREE turorials for Linux, Web designing, Web template Editing, Operating systems, New technology, Bioinformatics, Bioinformatics perl scripts, Clinical research and much more curious topics you need to know.  
Your IP address is: 38.107.179.239


Reliable Hosting Solutions

Find more Info related to your curiosities @ our FORUM


First PERL Script

Open your favorite text editor.
You can use any text editor to write the PERL scripts. Save the script with .pl extension.

 

firstperlscript.pl

Linux
-

The first line of every PERL script is a commented line directed toward the interpreter.

firstperlscript.pl:
#!/usr/bin/perl

Lets start with a simple script to print " Hello World "
Example:

#!/usr/bin/perl
print "Hello World"

Save it as " firstperlscript.pl ".
In Unix / Linux you will need to give execute permissions for your scripts.

Examples:
$ chmod +x firstshellscript.pl
or
$ chmod 755 firstshellscript.pl

How to run the PERL script:
In Unix / Linux / Windows
perl firstshellscript.pl

Now lets try the same example in the web environment.
We need to add the http headers so that Perl understands we are working with a web browser.

Example:

#!/usr/bin/perl
print "content-type: text/html \n\n";
print "Hello World!";

How to run the above script in web environment:
You need to upload the firstperlscript.pl file to your hosting account via FTP.
Chmod it to 755 and access this file using browser.
If everything is fine, the browser should displays " Hello World ".

-
<< Previous    |     Next >>
 
© TechCuriosity.com 2006 - 2007. All Rights Reserved.
Designed and Maintained by Telson Thomas
Techcuriosity
Website News
Sponsored Links
• Free Web Hosting
 
• Advertise Here
 
Help us in our Mission
 
Twitter 
Our Network Sites
• Web Hosting Solutions
• SEO and Link Directory
 
Free Tutorials
• HTML Tutorial
• PERL Tutorial
• Exim Commands
• MySQL Commands
• FTP Commands
• Shell Scripting Tutorial
 
Member Login
Username:

Password:

 
Search for Curiosity
 
 
 
Forum Curiosity Topics
• Forum Index
• Operating System's
• Web Hosting
• Programming
• Bioinformatics
• Biology & Bio-Technology
• Computer Security
• Hacking
• General Curiosity
• Jobs
 
Newsletter Signup
 
Subscribe
 
 
• Link Directory
• SiteMap