Introduction to Perl (2008/2009)
Synopsis Introduction_to_Perl_2008_2009.pdf
Evaluation
First partial evaluation: 15th October 2008
Last partial evaluation: 3nd December 2008 at 2PM
Project deadline: 15th December 2008 at 1PM
Resources
Classes
Please be sure that you have Linux working on your laptop and perl functional. open a terminal and type: perl -e 'print "Hello\n"' Did it print hello on the screen? Fine you are set. Otherwise, you probably don't have perl installed. Try to install it.
Class 1ab: Introductory concepts, exercies1.txt
Class 2ab: Variables and conditionals, exercise2.txt, sample.pl
Class 3ab: Iteration and arrays (slides of Class 2), exercise_iters.txt
Class 4ab: Debugging and manual pages
Class 5ab: References Exercises
- Class 6ab: FIRST TEST. Take with you the Perl tutorial above in paper version or electronic. DO NOT RELAY ON NETWORK BEING THERE.
Class 7ab: Complex data structures minetext.txtex_data_structure.txt1JNO.pdb
Class 8ab: Regular expressions
Class 9ab: Course project. project_background.pdfproject_specs_updated[Oct30].pdf UPDATED. Take a look at it in advance.
- Class 10ab: Class exercises. All exercises so far proposed should be DONE by Date 5/11
Class 11ab: FINAL TEST. Confirmed date 3/12. Time to determine.
Project Deadline: 15/12. Project Specifications UPDATED project_specs_updated[Oct30].pdf. Substitution matrices: blosum62.dat, pam120.dat.
important note: Exam and project weightings can't be modified from what the syllabus says. It's 40% exams and 20% the project.
Codes
Somebody asked how to print a matrix.
sub print_matrix {
my $ref = $_[0];
for (my $i = 0; $i < 3; $i++) {
print "@{${$ref}[$i]} \n";
}
}
my @B = ([1,2,3],[4,5,6],[7,8,9]);
print_matrix( \@B);