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
1.  A function that produces the Collatz sequence and counts the number of terms. 2.  A main function that calculates interesting values about the Collatz sequence. 1.The Col

The last matrix operation which we'll see is matrix multiplication. Now there we will start along with two matrices, A nxp and B pxm . Remember hat A must have similar number of c

Need help with a cobol program.

OTRS Customisation using Perl, MySQL Programming OTRS is a perl based open source issue ticket management solution. Default performance features 'note-internal' that is visible

Question: (a) What do you understand by the term Postback? (b) Describe five benefits of creating virtual directories while developing an ASP.NET application. (c) Exp

I have doubt in this section .do-while loop.could you able to clear it for me.

what is the difference between class and interface

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

Who can help with MATLAB?

how to rewrite C++ program the DNAStrand class (DNA Project) to instead store the nucleotide sequence in a dynamically-allocated array?