Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linux 1

Status
Not open for further replies.

prasoon

Programmer
Nov 15, 2002
67
IN
hello every body... i am new to this perl thingy..I have redhat linux 9.0 running on my system and i want my system to run the perl server in order to lern to use the perl scripts, but i dont know where to go i mean under which directory i should look for it...
any helpswould be greatful
regards
 
First off let me welcome you to the wonderful world of perl.

Second perl is not a server, but more like a command interpreter. As such there is nothing that has to be started on the server to start programming with perl.

Just type:
Code:
perl
at the command prompt and the perl interpretter will be ready for you to start programming. You will need to tell it when you are done by pressing ctrl-d when you are done typing in your program.

If you just want to try simple 1 line things with immediate feed back you could try running the following on the command line:
Code:
perl -de '1;'

Type in valid perl statements and see the results immediately.

type q at the prompt to exit.

I also suggest reading the perl intro man page (man perlintro) for a quick overview.

If you have any questions about perl you know where to come and ask. Have fun
 
You're probably best getting a book like Learning Perl [1] or Programming Perl [2] to get you started. Teaching yourself without a good reference guide isn't the best way to learn Perl. You can pick up some bad habits that may trip you up in the future.

[1] [2]
There are plenty of books and online resources to help you along, and there are plenty of people in this forum who can point you in the right direction if you get stuck.

Also try and become familiar with CPAN [3] and perldoc [4], as they can be great resources to find out if someone has solved a particular problem before.

[3] [4]
To learn using Perl in a CGI environment, you will need a web server. The default on Linux is Apache [5] (try 'locate httpd' for its exact location). Again the above links should point you in the right direction, although setting it up can be a bit confusing to begin with, but Apache: The Definitive Guide [6] is a good book to help you out.

[5] [6]
Barbie
Leader of Birmingham Perl Mongers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top