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
System.in and System.out should not be used anywhere in the programs except in main and only for testing purposes.  All calculations should be done in a method.  Note:  To use J

Man, i''m having quite a problem with this exercise. Even googled for Roman multiply table concept. I just don''t get it. Multiply two numbers given in Roman figures. For instan

Write a program that will input two numbers from the keyboard and execute each of the signed and unsigned multiply and divide instructions.  For each instruction, the program shoul

Is it possible to get an assignment done within 2 hours

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

How to lunch webcame via viusal studio 2012

write c++ source code to find the number of digits in a given integer? pls ans

,how to write matlab program for fast decoupled method

PLEASE HELP ME ORACLE PROGRAMING TRIGGER

write and compile a simple program in Assembly Language that compute and print student grades for a course.which you can open a file, read from it, and compute the results...using