BCHM 4400 Lecture Notes - Lecture 2: Standard Streams, Empty String, Newline

21 views2 pages

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents