Perl program, Programming Languages

Input to be in the form of a string of less than 256 characters. Assume that this character string (record) can only be of the form:

Last Name, First Name, Box number, City, State, zip code.

The test file name, with any number of records, is C:\NameAndAddresses

Use a regular expression to remove end-of-line characters, make first letter of the first and last names, City and State a capital letter if it is lower case, and the remainder of the name changed (if necessary) to lower case. You may use simple regular expression, and process the string multiple times, or you may use a more complex one only once.

Use split(), based on the coma, to split the final string into as needed below. Then write to the screen, in tabular form:

Last Name
First Name
Box
City, State Zip

This is known as, "cleaning up the data," for future processing. Unfortunately, when date items are inconsistent, they may cause trouble. You may use any combination of scripts you like except that the core processing (regular expressions and splitting) must be done in Perl.

Posted Date: 2/25/2013 12:21:09 AM | Location : United States







Related Discussions:- Perl program, Assignment Help, Ask Question on Perl program, Get Answer, Expert's Help, Perl program Discussions

Write discussion on Perl program
Your posts are moderated
Related Questions
You get a contract to implement a simple Java application that process NBA team roster : your application has to read the NBA team roster from a text file and then print each playe

An HTML document may be created via any HTML editor or text editor such as notepad etc.

Add macros to MS word 2010 according to A PARTICULAR FORMAT

Each of the following two procedures defines a method for adding two positive integers inĀ  terms of the procedures inc, which increments its argument by 1, and dec, which decrement

What are the Functions in Computer Programming? A program is completed up of one or more functions, with one of these being main(). Function is a self-contained block of progra

Hi I have an assignment for prolog languagle is it possible to get help

This is Python program I am stuck Modify the Russian peasant multiplication mod n function from class to perform "Russian peasant exponentiation" instead. You can assume that you

i''ve a problem with rendering a page with django templates

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Need help with a cobol program.