Chapter 1 Flashcards
1
Q
$filename
A
= variable
2
Q
||
A
OR
3
Q
“&&”
A
AND
4
Q
==
A
Compare
5
Q
A
reads user input
6
Q
chomp
A
strips new lines
7
Q
10..1 =
A
array 10 - 1
8
Q
@filename=
A
an array
9
Q
“hello” x 3;
A
“hellohellohello”
10
Q
“hello”. “ “. “world”;=
A
“hello world” (concatenation)
11
Q
reverse =
A
prints it backwards
12
Q
sort( ) =
A
sorts a list by case sensitive alphabetic
13
Q
pop( ) =
A
removes the last element from the back of the array
14
Q
shift( ) =
A
removes the first element from the front of the array
15
Q
push( ) =
A
add new item to the end of the array