Topic awaiting preservation: Perl and Email Addresses (Page 1 of 1) |
|
---|---|
Neurotic (0) Inmate Newly admitted From: fort lauderdale |
posted 01-31-2003 19:52
I want to write a script that will allow me to let people automatically remove themselves from my mailing lists. The lists are in text files formatted as followed. Something@you.com,A@v.com,b@v.ccom,c@v.com |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 01-31-2003 20:57
leeowc: Welcome. This could do with being in server-side scripting so that is where I'm sedning it. |
Paranoid (IV) Inmate From: California |
posted 02-01-2003 03:05
Hi Lee, code: #!/usr/bin/perl -w
|
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 02-01-2003 06:15
nicely done, but wouldn't we want that regex to be global? |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 02-01-2003 06:33
nah there should only be one entry |
Paranoid (IV) Inmate From: California |
posted 02-01-2003 17:40
I guess that depends on how strict you are when you insert an address into the DB. I would would check to make sure that the address doesnt exists before inserting into the DB so that regex would work. But, without seeing the rest of the code, I think making it global would might be warranted. |