Instructables
Picture of Learn perl easy to medium
untitled.bmp
untitled.bmp
Perl is a text based scripting languge that has it's advantages and disadvantages,this tutorial will give you an overview of the basics and the functions that most scripters (AKA;programers)
would use. LETS GET STARTED! (for windows operators only)
I am assuming that you have worked with a hello world program before or/and worked with a interpeter.

when scripting in perl you have to change your PATH,
but if you dont want to do this, use perl express (shown below).

*note plese rate and comment this instructable

Step 1: The materials

1.a perl interpeter (google it!)
2.if you want, perl express (google it!)
3.also, if you want , modules (google perl modules for some)
install the modules in the "lib" folder in your perl interpeter's directory

Step 2: Your first program

okay lets make a simple program,
copy and paste this #!/usr/bin/perl
print "hello world";
that is the simplest program you can make, if you want to add to it a little, type #!/usr/bin/perl
print "hello \n world";
you made your first program! , \n is to make a new line
now lets get a little more advanced

Step 3: Variables

now there are three types of variables,
1.scalers (holds one strip of data) (( $scaler name = value;)
2.arrays (holds multiple strips of data)
((@array name = (values);)
3.hashes %hashname = (value => other value , value => other value #put as many of theses as you want )

 
Remove these adsRemove these ads by Signing Up
bowmaster4 years ago
Get Perl for dummies. Way better then this.
Wow... looks really complicated.
LAME
delphinkid5 years ago
Which interpreter do you use? Any time I open a script in active perl it closes almost immediately. I can just barely see it say "hello world!".
cris1133 (author)  delphinkid5 years ago
dont open it directly from active perl open the script from a command prompt WITH active perl.If you dont want to do this use perl express.To do it with the prompt change your path to where active perl is.Do this by entering path directory here.Please tell me if this solves your problem if it dosent I will be happy to help.
I opened it with perl express and it worked, thank you for helping!
cris1133 (author) 6 years ago
youthink this is complicated? , try java
cris1133 (author) 6 years ago
what looks complicated ? ,the script in the picture or the tut?