Perl - Part 2
[home] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25]
What can I do in Perl? If it's for report extraction and so on surely it's not a general programming language; won't it be dull and limited?
No. Perl was written with a wide core functionality that allows a lot of freedom. However, the language was designed to be extensible - you can add things to it! And people did, such was the popularity of the language. If you want to know more about how to do anything, find a suitable site and do a search. Download the module necessary, include it in you program and away you go.
For example if you wanted to do clever stuff with the keyboard, look here.
How do I start?
All programming languages need 3 components:
- An editor to create the program
- A Compiler or Interpreter to translate and execute the program
- An environment in which to run the created programs (a.k.a. a computer!)
So to get started, log in to a UNIX/Linux computer. Perl is available for Windows™ as well but why use an imitation of the real thing; why have glitter when you can have gold?
Programming Component 3: Where do I Log In?
If the school computer system was correctly set up, you'd have full access to a complete Linux GUI and could program very easily. As it is not, we have to rely on some older techniques that are still very solid and dependable, just not so user friendly.
We're going to use a CLI for the 3rd element above.
Secure SHell GUI login with PuTTY. Alternately use the SSH command if available.

Once the server, connection protocol, port and other settings are correct (you'll be given the details of the server you are to connect to in class) click on Open. Provide your username and password to the remote system and you're ready to start.
You'll know you're ready to start because after a successful login you'll see a command prompt with a flashing cursor waiting for your next move........
[home] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25]
Last updated: 20120108-16:51