








































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









































COMP 524 Programming Language Concepts Stephen Olivier January 29, 2009 and February 3, 2009
Based on notes by N. Fisher, F. Hernandez-Campos, and D. Stotts
2
4
5
Assembly (^) C^ C++^ Java
Tcl/Perl
Visual Basic Scripting
System Prog.
7
10
11
$A = print (“A’s 1; value is $A \n”);
13
$B = “bye”;$A = “hi”; $C = $A. $B; 14
@A = (1, “two”, 3.13, true);
print ($A[1]); #Prints “two” 16
@A = print $#A; (1, “two”, #Prints 4 3.13, true);
17
%A foreach = (‘first’, 1, ‘junk’, ‘value’, 3.14, true); (keys (%A)) { #Loads values in t “$” }^ print^ “(^ $A{$}):$_ \n”; 19
20
if($b <$b = 3; 10){ } $a = 5;elseif ($b < 20){ } $a = 15;else { }^ $a = -3; print($a); $c = print($c >= 3; 10? 20 : 10). “\n”;