Scalar Variables are named variables holding numeric or string scalars or both. There are NO types (integer float char) of variables. The interpretation of a scalar is always determined by context and not "type" of variable.
-
$cps616_num is a scalar variable represting number of students in CPS616
|
Variables are set by conventional equal sign
|
Note statements are ended by semicolons -- not by newlines and # can be used to denote a comment
-
$Instructor= "Fox"; # Not really true as Wojtek did all the work
|
Comments can be single lines or after statements or on a line on their own. They are terminated by newlines.
|