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 will create a simple network management configuration which checks that certain programs are running on your network and are performing as expected, and that certain system det

A partly completed project Cwk 4-students is available for downloading from Studynet Assignments. You are required to amend this BlueJ project to implement a version of the WHEN sy

Topic Develop a Web site that will provide information about your organization. The Web site will need to have a user-friendly interface for users to enter their information;

I have an assignment that requires from me to run multiple clients and one server ( Corba)

BACKGROUND: This assignment illustrates the power of mobile applications. OBJECTIVES: 1. Mobile applications DESCRIBED TASK: This is a single part assignment.

Open error message coming out when compiling

One of the main strengths of the Perl programming language are its powerful text manipulation features. In this assignment, you will put them to  use for writing a Perl program tha

,how to write matlab program for fast decoupled method

NOTE: You will only submit the University.java and EmptyFileException.java files (inside P3.zip/tar) NOTE on null objects:. From Project 1: Since the array of students in the Cou

1.  Develop a page to indicate distinct attributes of Font tag. 2.  Develop a page to indicate different attributes: bold, italics, underline. 3.  Design a page with backgrou