Advertisement

03.13.2008 at 08:57AM PDT, ID: 23238991
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.3

parsing two files in Perl

Asked by saibsk in Perl Programming Language

I have two files:

file 1:
JOHN       N/A         N/A                 0:05    0:30                           2:00            Still running
HARRY      CALIF      client006      2:30      4:00      4:24      4:39      10:54:46      10:54:46

file 2:

Name      ID      DEV      TEST      PROD
JOHN      AB      3:03      5:13      5:14
HARRY      BC      3:05      3:33      3:35



Here I have to compare the 5,7,9 fields of the file 1 to the 3,4,5 fields of the file 2 respectively. I need to send out the email when either of 5,7,9 fields are greater than 3,4,5 or missing. But the report should say something like this is say when the 5th field (file1) is greater than the 3rd field (file2) for john, in the email the message should be "DEV time is still running for ID AB". Similarly when the 7th field (file 1) is missing for John. It should say "TEST time missing for ID AB". And for the file 1, I want to have a check on the 5,7,9 fields such that if they are not in time format such as the 9th field for John. I need to handle that exception by sending an error message in the email saying "Prod Still running for Id AB".

Please advise.Start Free Trial
[+][-]03.13.2008 at 09:51AM PDT, ID: 21118172

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Perl Programming Language
Sign Up Now!
Solution Provided By: stefan73
Participating Experts: 1
Solution Grade: B
 
 
[+][-]03.13.2008 at 11:26AM PDT, ID: 21119201

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628