Perl Shortcourse Howto
- Setup TAMU NetId
- Connect to Campus Wireless
- Obtain a Supercomputing Account
- Login to eos or hydra
- Get Help With Unix Commands
- Create and Edit Text Files
- Run Perl
- Run perlconsole
- Install Perl
- Install perlconsole
Setup TAMU NetId
Before you can use the campus wireless or apply for a Supercomputing account, you will need to activate your NetId.
Connect to Campus Wireless
Using a laptop with wireless capability, you may connect to the tamulink wireless network where available on campus, including the classroom for the shortcourse.
Obtain a Supercomputing Account
If you are a TAMU faculty, staff, or student who has a genuine need for access to a Supercomputer cluster for research, read the New User Information to find out how to apply for an account and create your login and password on eos or hydra.
We will use eos as the main platform for doing the lab exercises, but you may also complete them on hydra. Alternatively, you can download them to another machine with Perl installed.
Get Help With Unix
The New User Information has links to introductory material on Unix under the Getting Started section. You will need to know how to change directories, edit files, run programs, and other basic tasks to perform the laboratory exercises.
Login to eos or hydra
You will need to use ssh from a shell (Unix or OS X), or PuTTY (Windows). Consult the Accessing TAMU Supercomputing Machines guide.
Create and Edit Text Files
The text editors vi and emacs are the most common editors for experienced Unix users. However, they are more complicated and require some time to learn. Novice users will probably want to use nano, available on eos. Instructions here. To open a file called myprogram.pl, type:
At the bottom of the screen, you will see a list of shortcut keys for saving, searching, exiting, etc..
On other Unix systems, like hydra, the nano editor is not installed. Some alternative editors which are designed for beginners include pico, joe, and nedit (which requires X-windows).
To run a file called myprog.pl, type:
The perl program is located in /usr/bin, in case your shell cannot find it. Check the $PATH environment variable, as set in your startup files.
On eos, type:
On hydra, type:
Note that perlconsole is not installed on hydra2
For ease of use, you may put the appropriate directory in your $PATH environment in your startup files.
If you have a personal laptop (Windows or PC), or have root access to a Unix office/lab machine, first check to see if Perl is already installed (it comes with most releases of Linux and OS X). If not, read the instructions at the Perl Download site for obtaining and installing a version of the machine of your choice.
If you have a computer with Perl installed, check to see if perlconsole is there. If not, you may install it from Alexis Sukrieh's website. Be forewarned that this program has a nubmer of CPAN Perl module dependencies, so it may take you and hour or two to install. And, if you do not have administrative privileges, you'll need to install in an alternative location and configure the appropriate path variables.