CPS160: Perl program in Eclipse

your first perl program in eclipse

Now that you have spent so much time getting Eclipse working, it is time to try your first program.

The Ambient plug-in allows one to browse code online by using a tool called Snarf. Basically, we will provide you with some code as a framework and possibly some data files for each homework assignment and Snarf will allow you to import these files into your local copy of Eclipse. To start your first program, follow the directions below.

1.) Open Eclipse after setting up everything as described in the first tutorial.

2.) Now we will try running the simple Perl program that you downloaded.

You can just repeat step 2.) every time you edit the program. For each assignment, we will provide a codebase for you to work from, which you will always be able to import by Snarfing.

Submitting projects for grading

You can submit your code from within Eclipse. This can be done by selecting the Ambient menu, and then clicking on Submit Project for Grading. This will bring up a submit window. The top box is for what class and assignment you wish to submit. Click on cps160 and select the problem folder. The bottom window is what you wish to submit. You will need to know the location of your project. Click the Browse... button and select your problem set directory. Hit OK, and the bottom window should then display all of the items in that directory. Check only the perl files (orfs.pl, p53.pl and plasmid.pl) and the readme.txt file. These are the files you will be submitting. Then hit submit. You will be asked to enter your Acpub ID and password. Now, you have submitted your project! You can submit as many time as you like, as everything is stored on the server. Thus, if you realize that you did something incorrectly at the last minute, you can resubmit and we will see you updated submission.

Submitting a sample project

Following the directions above, try submitting the TODO project to ensure that you are able to submit using snarf.