Write a perl script, Computer Engineering

Write a PERL script which takes a file named input.txt as an input and processes it. The input file has the following format: firstname lastname: pass/fail score%. A sample input file is:

$cat input.txt
John Do: pass 59%
Alice Do: fail 30%
Bob Do: PASS 80%

If the user has passed (i.e. has case insensitive \pass" in the 3rd field), then your code should print the login name (first letter of first name followed by the last name, all in lowercase) of the user and his/her corresponding score in fraction.

The output of your code on the above input should look like:
$perl final.pl
jdo: 0.59
bdo: 0.8

Posted Date: 3/14/2013 2:10:08 AM | Location : United States







Related Discussions:- Write a perl script, Assignment Help, Ask Question on Write a perl script, Get Answer, Expert's Help, Write a perl script Discussions

Write discussion on Write a perl script
Your posts are moderated
Related Questions
Explain User Datagram Protocol. UDP(User Datagram Protocol) : User Datagram Protocol uses a connectionless communication paradigm. It is an application using UDP does not re

You are going to write a program to simulate a conversation with an old, deaf relative. You can type your statements, and whatever you say, the relative will reply randomly with on

Write a program that input (from the user) the number of hours worked and hours pay rate for employees and output their total pay. The program should process an arbitrary number of

N number of XNOR gates is linked in series that is the N inputs (A0, A1, A2......) are specified in the subsequently way: A0 and A1 to first XNOR gate and A2 and O/P of First XNOR

Explain the term Overlays. An overlay is an element of program that has the same load origin as several other part of the program. These are used for reduce the main memory req

Strong AI makes the bold claim that computers can be made to think on a level (at least) equivalent to humans. Weak AI only states that some "thinking-like" features can be added t

What are the some support activities in primary functions of Supply Chain Management? To support primary functions of Supply Chain Management there will be a company’s infrastr

Q. Evaluate Speed of disk drive? Drive Speed: Amount of information which can be transferred in or out of memory in a second is called as disk drive speed or data transfer ra


representation of the adjacency matrix and adjacency list