Due Date: February 7, 2001
(1) Consider the following dictionary file: words.txt , which contains one word per line. Write a Perl program or Perl command line statement to list all words that contain all five vowels (in any order) in the following format:
1: adventitious
2: aeronautic
3: ambidextrous
4: argillaceous
5: argumentation
6: auctioneer
7: audiotape
8: augmentation
9: aureomycin
10: authoritative
11: autocollimate
12: automobile
13: automotive
14: autosuggestible
15: beaujolais
...
(2) Consider the dictionary again. Write a Perl program to list every word such that if every character of the word is shifted three characters cyclically, it is still a word in the dictionary. For example, 'box' is in the output because shifting each character of 'box' three characters results in 'era,' another word in the dictionary. The output format should be:
a => d
al => do
ala => dod
alb => doe
ar => du
ark => dun
az => dc
b => e
be => eh
bob => ere
boo => err
box => era
c => f
cb => fe
cobb => free
cobra => freud
col => fro
cold => frog
...
(3) Consider the following XML file: news.xml. Write a Perl program or Perl command statement to print all headline news, one headline per line. You may assume that headlines are stored in the lines within the XML element headline_text. Output for using news.xml:
Macromedia Agrees To Acquire Allaire
Macromedia and Allaire merge
Macromedia buys Allaire in $360 million deal
Macromedia reports Q3 results, Allaire merger
plan
Microsoft readies .Net-enabled customization
tool
Zelerates AllCommerce targets e-business
Macromedia snaps up Allaire
No-Refresh Links
Macromedia swallows Allaire (updated)
Sun to lose key player in Web software push
Linux Worm On the Loose
Microsoft debuts .NET tool for Web apps
Macromedia Acquire Allaire for USD 360 Mn
Thinkpath Consolidates Web Development Subsidiaries;
Njoyn Software and TidalBeach Merged Into Single Group
Hole found in Windows Media Player skins
Icebox deal puts animation in your face
LiveMotion Tips
Macromedia Makes Pitch For Allaire
Tech Companies Form Internet Security Center
Microsoft Announces VSA To Ease Web Development