Chapter 1 Flashcards
(35 cards)
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
16
Q
unshift( ) =
A
add new item to the front of the array
17
Q
&subroutine_name =
A
calls up a subroutine
18
Q
&subroutine_name =
A
calls up a subroutine
19
Q
||
A
OR
20
Q
&&
A
AND
21
Q
==
A
Compare
22
Q
A
reads user input
23
Q
chomp
A
strips new lines
24
Q
10..1 =
A
array 10 - 1
25
@filename=
an array
26
"hello" x 3;
"hellohellohello"
27
"hello". " ". "world";=
"hello world" (concatenation)
28
reverse =
prints it backwards
29
sort( ) =
sorts a list by case sensitive alphabetic
30
pop( ) =
removes the last element from the back of the array
31
shift( ) =
removes the first element from the front of the array
32
push( ) =
add new item to the end of the array
33
unshift( ) =
add new item to the front of the array
34
splice( ) =
change the middle of an array
35
&subroutine\_name =
calls up a subroutine