CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
All right, I have three Perl books, one is the Camel book.

 



ClueLess
New User

Sep 21, 2003, 8:23 PM

Post #1 of 5 (746 views)
All right, I have three Perl books, one is the Camel book. Can't Post

Problem, Yes they all say where to get the source. Great. But I may seem clueless. But, how do I get started? The first program to write is hello world! Great but, none of the books state what type of format to create it in (notepad?) I unzipped the Perl application and hey that doesn't work. I've read through the books and am I just missing something. I have basic understanding of programming. I'm using a ms DOS based computer. And I believe I have installed Perl correctly. Just would really like to know what I'm missing about this. I understand complied languages. I've read through three perl books. I understand arrays, loops, all that kind of stuff. So it seems silly but at this point after reading three books. I'd just like a clue as to what I'm doing wrong.Crazy Thanks


ClueLess
New User

Sep 21, 2003, 8:58 PM

Post #2 of 5 (745 views)
Re: [ClueLess] All right, I have three Perl books, one is the Camel book. [In reply to] Can't Post

Ok is Perl a code like html where it is written in text format then ran on a browser (different platform)?

Or can it be like Pascal (old school) or Qbasic and exist in a shell format that checks for errors?


davorg
Thaumaturge / Moderator

Sep 22, 2003, 12:22 AM

Post #3 of 5 (744 views)
Re: [ClueLess] All right, I have three Perl books, one is the Camel book. [In reply to] Can't Post

If you've downloaded the source code for Perl then you won't be able to run any Perl programs until you have built and installed the compiler. Instructions for doing this are in the INSTALL file that comes with the Perl distribution.

However, judging by your reference to Notepad, you might be on a Windows machine. In that case it's really not at all easy to build Perl from scratch (you probably don't have a C compiler for a start). In this case it's far easier to download the prebuilt Windows version from ActiveState.

Perl programs are plain text files. Creating them in Notepad will be fine, but at some point you'll probably want to get a better editor.

--
Dave Cross, Perl Hacker, Trainer and Writer
http://www.dave.org.uk/
Get more help at Perl Monks


KevinR
Veteran


Sep 22, 2003, 12:35 AM

Post #4 of 5 (742 views)
Re: [ClueLess] All right, I have three Perl books, one is the Camel book. [In reply to] Can't Post

Perl is similar to HTML in that they are both text files. To run Perl programs with a browser you must also have an http server installed on your computer. It is fairly easy to install Apache ( http://www.apache.org/dist/httpd/binaries/win32/README.html ) on a Windows computer. Then after you have Perl installed on your computer you can run scripts through a browser just like you would do on the internet.
-------------------------------------------------


davorg
Thaumaturge / Moderator

Sep 22, 2003, 12:45 AM

Post #5 of 5 (740 views)
Re: [ClueLess] All right, I have three Perl books, one is the Camel book. [In reply to] Can't Post


In Reply To
Ok is Perl a code like html where it is written in text format then ran on a browser (different platform)?

Or can it be like Pascal (old school) or Qbasic and exist in a shell format that checks for errors?


Perl is plain text like HTML. That's really the only similarlity.

Perl is not run in a browser[1]. One of the most common uses for Perl is in writing CGI programs. In this case a browser makes a request to a web server, the web server runs the CGI program and the output from the CGI program is returned to the browser. The CGI program does not run in the browser, it runs on the web server.


[1] Actually ActiveState have a PerlScript plugin for browsers that allows Perl to be run in a browser, but it's very rarely used.

--
Dave Cross, Perl Hacker, Trainer and Writer
http://www.dave.org.uk/
Get more help at Perl Monks

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives