Write a script in perl

Assignment Help Programming Languages
Reference no: EM13935467

Write separate Perl scripts for each of the given requirements. Mentioned input data files are attached with this posting. In each case command to run the script from the command line should look like:

COMMAND_PROMPT> script_number.pl input_data_file.txt

[1] A script script_1.pl that replaces each instance of "th" with "TH" in file part1.txt. The script should print the file to the screen, not just the replaced lines.

[2] A script script_2.pl to look for lines in the file part2.txt containing a period, question mark, or comma at the end of the line. When these lines are found, print only the part of the line that occurs after the word "it" (case insensitive).

[3] A script script_3.pl that prints only words (not the entire line) in the file part3.txt on a word boundary that have the letter "p" or "P" in them (i.e. words begin/end with P/p).

Reference no: EM13935467

Questions Cloud

Would the cells present have had to grow : Hamburger ground under the best condition often has a bacterial count of 1000-10,000 per g due to contamination. If your sample had 10^6 bacteria per g, could this number have been just contamination or would the cells present have had to grow? W..
What is maximum initial cost company would be willing to pay : Scanlin, Inc., is considering a project that will result in initial aftertax cash savings of $1.72 million at the end of the first year, and these savings will grow at a rate of 2 percent per year indefinitely. What is the maximum initial cost the co..
Consultants to bring gala information security : A project plan which incorporates the essential components of project management. This will include personnel, the activities to be undertaken by each team member, a timeline using an appropriate planning tool, the risks and threats to successful ..
Hr managers need to be up to the challenge : Written Analytical Essay (Individual) "Organisations are experiencing unprecedented levels of change in their environment, and HR managers need to be up to the challenge."
Write a script in perl : Write separate Perl scripts for each of the given requirements. Mentioned input data files are attached with this posting. In each case command to run the script from the command line should look like:
Why are direct gram stains ordered on clinical specimens : Why are direct gram stains ordered on clinical specimens? Why is a direct gram stain performed on all anaerobic cultures, even if it is not specifically ordered by the physician? Why is a gram stain performed on all CSFs?
What actions do you take to get the new shares : ABC Company is currently quoted at 53 on NASDAQ. A Rights Offering has been declared with an exercise price of 48, and 4.92 rights are needed to buy a new share. If you own 10 round lots of this company, answer the following: How many new shares can ..
Van buren currently expects to pay a year-end dividend : Harrison Corporation is interested in acquiring Van Buren Corporation. Assume that the risk-free rate of interest is 4% and the market risk premium is 8%. Van Buren currently expects to pay a year-end dividend of $1.85 a share (D1 = $1.85). Van Buren..
Examine and critically evaluate the hrm implications : Individually, research and write an analytical essay which uses relevant human resource management (HRM) theory and empirical research evidence to examine and critically evaluate the HRM implications of two (2) of the environmental changes present..

Reviews

Write a Review

Programming Languages Questions & Answers

  Design program to asks for number of fat grams

Design a program that asks for the number of fat grams and calories in a food item. Validate the input as follows: Make sure the number of fat grams and calories are not less than 0.

  Write program to test class-compute next month-s interest

Write the program to test class SavingsAccount. Instantiate two savingsAccount objects, saver1 and saver2, with balances of $2000.00 and $3000.00, respectively. Compute next month's interest and print new balances for both savers.

  Select the names and average salaries for all departments

Employee table contains the following fields: ID, firstname, lastname, deptid, managerid, projectid.

  Design logic that continuously prompt user for numeric value

Design the logic for a program that continuously prompts a user for a numeric value until the user enters 0. The application passes the value in turn to a method that squares the number

  Write a script that calculates the squares and cubes

Write a script that calculates the squares and cubes of the numbers from 1 to 6 and outputs HTML5 text that displays the resulting values in an HTML5 table format, as shown below.

  Develop application for company having breakdown of payroll

Develop the logic for application for company which wishes report containing breakdown of payroll by department. Input comprises each employee's name, department number.

  Write a procedure should named get_frequencie

Write a procedure should named Get_frequencies that constructs a character frequency table

  Xhtml page to display current date time in client-s computer

Create the XHTML page which will display current date time in client's computer. Use document.write method in immediate script.

  Program to allot new value to first element of array

Write the single statement which assigns new value to first element of array. This new value must be equal to twice value stored in the last element of the array.

  Create a console-mode executable class

Create a console-mode executable class (no GUI in this project; let's keep it simple) using the following specifications.

  Create a list of short bulleted phrases showing all details

Rewrite this problem statement in your own words. Create a list of short bulleted phrases showing all details about this problem. This list should include both the explicitly defined and implied details in the problem statement.

  Create a program that has an object type of contact

Create a program that has an object type of Contact. This contact will need to have the following attributes: Name, Birth Date, Phone Number, Address and Eye Color

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