Gossamer Forum
Home : General : Perl Programming :

Where to get Perl...how to make the "hello world" thing and run it...

Quote Reply
Where to get Perl...how to make the "hello world" thing and run it...
i downloaded perl (i think) from some site...it was the one though, but could someone post the direct link to the Perl used in Perl writing...and instructions on how to install and run it...the perl i have is a all black MSDOS looking screen, i typed this

print "Hello, World!\n";


as the Hello World thing, but how do i save it and run it to make sure it works?? thanks
Quote Reply
Re: [skateboarder83] Where to get Perl...how to make the "hello world" thing and run it... In reply to
Put a lot of initial groundwork in yourself, did you?

A good start would be perl.com and google.com.
Quote Reply
Re: [Mark Badolato] Where to get Perl...how to make the "hello world" thing and run it... In reply to
ive looked, but couldnt find any sites that tell be the absolute basics...so please help me
Quote Reply
Re: [skateboarder83] Where to get Perl...how to make the "hello world" thing and run it... In reply to
Use the MSI installer from activestate.com to install perl then do as Mark said.

Go here:

http://perldoc.com/perl5.8.0/pod/perl.html

http://perldoc.com/...8.0/pod/perlfaq.html

Last edited by:

Paul: Feb 15, 2003, 2:25 AM
Quote Reply
Re: [skateboarder83] Where to get Perl...how to make the "hello world" thing and run it... In reply to
I bought "Perl for Dummies" from Barnes & Noble ($20) and not only did it explain everything you're asking, but it also came with a copy Active Perl.

I save my files as test.pl into the C:\perl\bin\ directory and type "perl test.pl" at the command prompt (dos window). I use it for testing stuff.
Quote Reply
Re: [Watts] Where to get Perl...how to make the "hello world" thing and run it... In reply to
In Reply To:
I save my files as test.pl into the C:\perl\bin\ directory and type "perl test.pl" at the command prompt (dos window). I use it for testing stuff.




how do save a script?
Quote Reply
Re: [skateboarder83] Where to get Perl...how to make the "hello world" thing and run it... In reply to
HTML Goodies Perl Primer
Perl Monks Tutorials
Perl.com
PerlDoc.com
Quote Reply
Re: [skateboarder83] Where to get Perl...how to make the "hello world" thing and run it... In reply to
I use "Text Pad" - it's a really neat program for writing text files (html, perl, etc.)

You can use notepad or wordpad simply type your perl stuff and save the file as whatever.pl -- the important thing is adding the .pl extension to the file. Here is what is in my test.pl file at the moment:
Code:
#!/usr/bin/perl -w

print "hello world \n";

print "bob\@joe.com \n";

$InvCode = "NatCity";

printf("%-15s",$InvCode);

This is where I was testing the formating of a field or two before adding them to a script.

Good Luck!