Last login: Mon Jan 14 11:11:18 on ttyp2 Welcome to Darwin! doina-precups-computer:~ perkins$ ssh perkins@lab2-2.cs.mcgill.ca ssh: lab2-2.cs.mcgill.ca: No address associated with nodename doina-precups-computer:~ perkins$ ssh perkins@lab2-2.cs.mcgill.ca Password: Password: Last login: Fri Jan 11 12:27:00 2008 from web019116.wireless.mcgill.ca The JVM for this session is: sun-jdk-1.6 The JVM for this session is: sun-jdk-1.6 ################################################################ ### Demonstrating Perl program creation (in separate window) ### ### and execution ### ################################################################ [perkins][lab2-2][~] cd Lecture5/ [perkins][lab2-2][~/Lecture5] ls Hello.pl [perkins][lab2-2][~/Lecture5] ls -l total 4 -rw------- 1 perkins 17260 24 Jan 14 13:07 Hello.pl [perkins][lab2-2][~/Lecture5] perl Hello.pl Hello world! [perkins][lab2-2][~/Lecture5] perl Hello.pl Hello world![perkins][lab2-2][~/Lecture5] perl Hello.pl Hello world!\n[perkins][lab2-2][~/Lecture5] ls -l total 8 -rw------- 1 perkins 17260 24 Jan 14 13:11 Hello.pl -rw------- 1 perkins 17260 24 Jan 14 13:07 Hello.pl~ [perkins][lab2-2][~/Lecture5] chmod u+x Hello.pl [perkins][lab2-2][~/Lecture5] ls -l total 8 -rwx------ 1 perkins 17260 24 Jan 14 13:11 Hello.pl -rw------- 1 perkins 17260 24 Jan 14 13:07 Hello.pl~ [perkins][lab2-2][~/Lecture5] ./Hello.pl ./Hello.pl: line 1: print: command not found [perkins][lab2-2][~/Lecture5] which perl /usr/bin/perl [perkins][lab2-2][~/Lecture5] ./Hello.pl Hello world!\n[perkins][lab2-2][~/Lecture5] perl Vars.pl Hello world! [perkins][lab2-2][~/Lecture5] [perkins][lab2-2][~/Lecture5] [perkins][lab2-2][~/Lecture5] [perkins][lab2-2][~/Lecture5] perl Vars.pl Hello world! [perkins][lab2-2][~/Lecture5] perl Vars.pl Hello world! 3.141592767[perkins][lab2-2][~/Lecture5] perl Vars.pl Hello world! 3.1415927673101[perkins][lab2-2][~/Lecture5] perl Vars.pl Scalar found where operator expected at Vars.pl line 10, near "$B $C" (Missing operator before $C?) syntax error at Vars.pl line 10, near "$B $C" Execution of Vars.pl aborted due to compilation errors. [perkins][lab2-2][~/Lecture5] perl Vars.pl Scalar found where operator expected at Vars.pl line 10, near "$B $C" (Missing operator before $C?) syntax error at Vars.pl line 10, near "$B $C" Execution of Vars.pl aborted due to compilation errors. [perkins][lab2-2][~/Lecture5] perl Vars.pl Hello world! 3.141592767 [perkins][lab2-2][~/Lecture5] perl Vars.pl Hello world! 3.141592767 3 10 1 [perkins][lab2-2][~/Lecture5] perl Vars.pl Hello world! 3.141592767 3 10 1 13 [perkins][lab2-2][~/Lecture5]