Perl program, Programming Languages

Assignment Help:

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.


Related Discussions:- Perl program

I need engineer with good knowledge of assembly x86 language, I need an eff...

I need an efficient and fast reverse engineer with good knowledge of assembly x86 language, strong reverse engineering skills, IDA Pro (Hex-Rays) to Linux game routine, C, C++ prog

Pseudo-code to illustrate the breakpoint in a program, The standard way for...

The standard way for debuggers to plant interactive breakpoints in a program in RAM (whatever the processor instruction set) is to save the break pointed instruction and replace it

develop a web page via href attribute, 1.  Develop a Web page via href att...

1.  Develop a Web page via href attribute of anchor tag and the attribute: vlink, alink, etc. 2.  Develop a Web page, in which when the user clicks on the link it will go to the

Looping, You are required to develop a program that calculates the charges ...

You are required to develop a program that calculates the charges for DVD rentals, where current release cost RM3.50 and all others cost RM2.50. If a customer rents several DVDs, e

Use a procedure to integrate cube, Simpson's Rule is a more accurate method...

Simpson's Rule is a more accurate method of numerical integration than the method described in class. Using Simpson's Rule, the integral of a function f between a and b is approxim

We are need of a prestashop expert, We are need of a PrestaShop Expert W...

We are need of a PrestaShop Expert We are getting a fresh design created for our Jewellery website. This job is in 2 parts 1. The website engine is PrestaShop as well as w

Shell script to check whether user has logged in or not, Normal 0 ...

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

Create a one to two page html document, Task 1 Think about a Web site...

Task 1 Think about a Web site you would like to work on for Assignment 2. For example, you can do a personal interest site, a site for your favourite nonprofit organization,

Write an implementation for the prime machine, You should use the BToolkit ...

You should use the BToolkit to produce the answers to the questions below. Where applicable, please use the machine names and identifier names suggested in the question to help me

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd