Advertisement

03.14.2007 at 06:21AM PDT, ID: 22448564
[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!

7.4

Picking selected records from a flat file.

Asked by tmccar10 in CGI Scripting, Perl Programming Language

Tags: ,

I'm trying to create a flat file, from another flat file,  for a maillist.

First, I'm trying to narrow the new file based on one criteria:"topic". I tried comparing "$topic" in <TXTFILE> to "$mtopic" I "split" out--After many attempts, I haven't been able to do that.

Second, In the new file, I'd really only like unique "names". Some names will be in the file several times, I just need one for the email.

I haven't even dealt with the email list yet. I need to get this fixed.

Appreciate any help

############
$path="../data/$category/forum.txt";
$outpath=">>../data/$category/maillist.txt";
open (TXTFILE,$path)||die "can't open $path\n";
open (OUTTXTFILE, $outpath)||die "can't open $outpath\n";#
#Get variables
   while(<TXTFILE>){
     next if /^$/; ## Skip blank lines
             ($mtopic,$cdsid,$date,$name,$prior,$comment)=split /\t/,$_;
        next if($topic eq $mtopic);
                print OUTTXTFILE "$mtopic\t";
                print OUTTXTFILE "$cdsid\t";
                print OUTTXTFILE "$name\r";Start Free Trial
[+][-]03.14.2007 at 07:33AM PDT, ID: 18718687

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]03.14.2007 at 08:27AM PDT, ID: 18719182

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.

 
[+][-]03.14.2007 at 11:12AM PDT, ID: 18720737

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]03.14.2007 at 11:17AM PDT, ID: 18720767

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.

 
[+][-]03.14.2007 at 11:35AM PDT, ID: 18720912

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]03.14.2007 at 12:36PM PDT, ID: 18721489

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]03.14.2007 at 12:37PM PDT, ID: 18721505

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]03.15.2007 at 08:42AM PDT, ID: 18727855

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.

 
[+][-]03.19.2007 at 06:36AM PDT, ID: 18747927

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.

 
[+][-]03.19.2007 at 12:40PM PDT, ID: 18751018

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]03.20.2007 at 03:55AM PDT, ID: 18755129

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.

 
[+][-]03.20.2007 at 06:13AM PDT, ID: 18755866

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

Zones: CGI Scripting, Perl Programming Language
Tags: file, records
Sign Up Now!
Solution Provided By: Adam314
Participating Experts: 2
Solution Grade: A
 
 
[+][-]03.20.2007 at 06:59AM PDT, ID: 18756220

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.

 
[+][-]03.20.2007 at 07:05AM PDT, ID: 18756258

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
 
Loading Advertisement...
20081112-EE-VQP-42