Paul,
Yr right, I totally screwed up what I was trying to ask! SORRY!
What I want is to make a list of the email addresses, in field 13, selecting on only those in field 17, that indicate Yes.
With yr reply I tried
In Reply To:
#!/usr/local/bin/perl
my @emails;
open(DB,"</www43/web/izmirh/cgi-local/Database/default.db") || die "Couldn't open database :!$";
while (<DB>) {
chomp;
split /\|/;
if ($_[17] =~ /yes/i) {
push @emails, $_[13];
}
}
close(DB);
open(DB,">/www43/web/izmirh/cgi-local/Database/email.txt") || die "Couldn't open database :!$";
foreach (@emails) {
print DB "$_\n";
}
close(DB);
print "Content-type: text/html\n\n";
print "DONE";
but that doesn't work either.
Here's a
http://www.izmirhigh.com/default.txt of my default.cfg if that helps.
Again, sorry for the confusion.
JR
Webmaster
http://www.izmirhigh.com/index.shtml