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
What is meant by bitwise operations? C has distinction of supporting special operators known as bit wise operators for manipulation of data at bit level. These operators are us

a) Total available bandwidth = 1 Mbps = 1000 Kbps Each user requires send data at the rate of = 500 kbps As it is circuit switched network we have to dedicate the bandwidth So the

Q. What is Flash Memory? This memory is other form of semiconductor memory that was first introduced in mid-1980.  These memories can be reprogrammed at high speed and therefo

Three Logic Levels are used and they are High, Low, High impedance state. The high and low are normal logic levels & high impedance state is electrical open circuit conditions. Tri

Rational Testmanager is a complicated tool that can be used for automating performance tests on client/server systems. A client/server system have client applications accessing a d


Question 1 Why is it important that an expert system be able to explain why and how questions related to a problem solving session. 2 Give the architecture of an Expert syst

In a national transmission system, the characteristic impedances of the 4-wire circuit and the 2-wire circuit are 1200 ? and 1000 ? respectively. The average phase velocity of the

How do you control instructions like branch, cause problems in a pipelined processor? Pipelined processor gives the best throughput for sequenced line instruction. In branch in

Classify data networks. Data Network Classifications: Data Networks are classified as per to their geographical coverage: - Wide area networks (WANs) - Metropolitan ar