Gossamer Forum
Home : General : Perl Programming :

Got me stumped.....

Quote Reply
Got me stumped.....
Hi,

I am making a mailing list script to beat all others :)

Can someone please tell me why this code tells you that you are not subscribed to the mailing list no matter what you enter?

The format of email.db is email|name so like paul@perlmad.com|Paul Wilson

Code:
sub unsubscribe {

check();

open(DB,"<$email_db_path$email_db") || die &error("The email database could not be accessed : $!");
@addresses=<DB>;
close(DB);

foreach $line (@addresses) {
chomp $line;
($e,$n) = split(/\|/,$line);
if ($e ne $email) {
&error("You are not subscribed to this mailing list, therefore you cannot unsubscribe.");
}
}

print "Location: $redirect_unsub\n\n";
}
I currently have this in email.db

perlmad@perlmad.com|Paul Wilson

...but when I enter the exact information into the unsubscribe form, it gives the error.


Thankyou :)


Paul Wilson.
Installations:
http://www.wiredon.net/gt/
Subject Author Views Date
Thread Got me stumped..... Paul 13290 Apr 7, 2001, 1:29 PM
Thread Re: Got me stumped.....
Stealth 12505 Apr 7, 2001, 2:37 PM
Thread Re: Got me stumped.....
Paul 12587 Apr 7, 2001, 2:42 PM
Thread Re: Got me stumped.....
Mark Badolato 12541 Apr 7, 2001, 3:01 PM
Post Re: Got me stumped.....
Paul 12447 Apr 7, 2001, 3:09 PM
Thread
Paul 12733 Apr 7, 2001, 3:14 PM
Post Re:
Mark Badolato 12502 Apr 7, 2001, 4:45 PM
Thread Re: Got me stumped.....
jsu 12481 Apr 7, 2001, 6:19 PM
Thread Re: Got me stumped.....
Mark Badolato 12396 Apr 7, 2001, 9:59 PM
Thread Re: Got me stumped.....
Paul 12480 Apr 8, 2001, 4:27 AM
Thread Re: Got me stumped.....
Mark Badolato 12400 Apr 8, 2001, 9:37 AM
Thread Re: Got me stumped.....
Paul 12526 Apr 8, 2001, 9:51 AM
Thread Re: Got me stumped.....
dan 12398 Apr 8, 2001, 11:12 AM
Thread Re: Got me stumped.....
Paul 12561 Apr 8, 2001, 11:54 AM
Thread Re: Got me stumped.....
dan 12465 Apr 8, 2001, 12:09 PM
Post Re: Got me stumped.....
Paul 12377 Apr 8, 2001, 12:48 PM
Thread Re: Got me stumped.....
Paul 12372 Apr 8, 2001, 1:03 PM
Thread Re: Got me stumped.....
cK 12393 Apr 8, 2001, 1:46 PM
Post Re: Got me stumped.....
Paul 12321 Apr 9, 2001, 4:46 AM
Thread Re: Got me stumped.....
sponge 12355 Apr 9, 2001, 10:52 AM
Thread Re: Got me stumped.....
Paul 12320 Apr 9, 2001, 11:08 AM
Thread Re: Got me stumped.....
sponge 12328 Apr 10, 2001, 1:38 AM
Post Re: Got me stumped.....
Paul 12288 Apr 10, 2001, 5:36 AM
Thread Re: Got me stumped.....
Paul 12674 Apr 10, 2001, 9:18 AM
Thread Re: Got me stumped.....
sponge 6427 Apr 10, 2001, 9:35 AM
Thread Re: Got me stumped.....
Paul 6361 Apr 10, 2001, 9:38 AM
Thread Re: Got me stumped.....
sponge 6330 Apr 10, 2001, 9:48 AM
Post Re: Got me stumped.....
Paul 6338 Apr 10, 2001, 9:59 AM
Thread Re: Got me stumped.....
Paul 6360 Apr 10, 2001, 11:05 AM
Thread Re: Got me stumped.....
Alex 6353 Apr 13, 2001, 7:03 PM
Thread Re: Got me stumped.....
Paul 6277 Apr 14, 2001, 5:32 AM
Thread Re: Got me stumped.....
Mark Badolato 6268 Apr 14, 2001, 10:20 AM
Thread Re: Got me stumped.....
Paul 6302 Apr 14, 2001, 10:41 AM
Thread Re: Got me stumped.....
Mark Badolato 6448 Apr 14, 2001, 12:52 PM
Thread Re: Got me stumped.....
Paul 6310 Apr 14, 2001, 1:00 PM
Post Re: Got me stumped.....
cK 6220 Apr 15, 2001, 3:20 PM
Thread Re: Got me stumped.....
Jagerman 6235 Apr 18, 2001, 11:05 PM
Post Re: Got me stumped.....
Paul 6183 Apr 19, 2001, 8:02 AM
Post Re: Got me stumped.....
Jagerman 6210 Apr 19, 2001, 9:31 AM
Post Re: Got me stumped.....
Mark Badolato 12433 Apr 8, 2001, 12:13 PM