BCHM 4400 Lecture Notes - Lecture 2: Standard Streams, Empty String, Newline
Document Summary
Chomp () function: removes the newline in a string. Chop () function: removes the last character of the line. Print operator: take scalar argument and puts it into a standard output. True = other numbers or all other strings. If control structure: statements in curly braces are executed only if conditions return a true value. Else keyword: provide alternative choice if the conditions don"t return a true value. The while control structure and more control structures. While loop: repeat block of code as long as the conditions are true in the loop. Unless control structure: block of code is executed only when the condition is false. Until control structure: used to reverse condition of a while loop. Variables have undef value before they are assigned their value. Can also assign the undef value to a variable. Defined function: used to tell if a variable has the undef value.