Perl Basics   «Prev  Next»

Perl Substitute Operator - Exercise

Using the s/ operator, write a Perl routine that will find all the common misspellings for your name and replace them with the correct spelling. If your name is not commonly misspelled, you can use mine. Here are the common misspellings for my name:

Winman
Wyman
Weinmann
Wineman
Weiman
Wieman
Wienman

122
The correct spelling is: Weinman.
Paste your source code in the area below and click the Submit button when you are finished.