CS 29
40 pts., Mar. 13
For the multiple choice questions, circle the letter corresponding to your answer.
#!/usr/contrib/bin/perl -w @list = ("June", "May", "August", "December", "January", "September"); $list[3] = "March"; $list[0] = "October"; $list[4] = "April"; print "$#list\n\n"; $i = 1; while ($i <= 4) { print "$list[$i]\n"; $i = $i + 1; } exit 0;
This is printed:
5 May August March April
A set of characters used in matching and considered to be of a single type. Examples:
[aeiou]
--- lowercase vowels.
[A-Z]
--- uppercase letters.
[0-9]
--- digits.
tr/A-Z/a-z/
accomplish?
=~
(Answer)
~=
=
~