CIS 2279 Homework Assignment #09
Due Sunday, Oct 18,
2015
- Create a perl script named lab09.pl with the following features:
- Open the file K:/Perl/LAB09/list.txt in
read-only mode. (download list.txt here)
- Read through the file and print out any words that match the
following:
- Strings that contain the text "ak" or
"eq" in them.
- Strings that contain three vowel characters in a row
("aeiou", including "y").
- Strings that begin with the letter "s", have
"e" as the fourth character and end with the letter
"y" .
- Print the matching strings for each of these items to the
screen and to a file in the user's "Desktop" folder in
theirhome or profile directory. From lab #7 we had shown the
%ENV
hash contains all the values from the user
environment.
last updated: 13 Oct 2015 14:42