Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    May 2009
    Posts
    47
    Thanks
    2
    Thanked 0 Times in 0 Posts

    check for duplicate emails

    Is there a script that will check a non-SQL dB for duplicate emails in Perl or CGI? My Web-app site doesn't use a dB for storing users profiles it only adds them to a CGI-bin db dir.

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by djdubuque View Post
    Is there a script that will check a non-SQL dB for duplicate emails in Perl or CGI? My Web-app site doesn't use a dB for storing users profiles it only adds them to a CGI-bin db dir.
    if you can read mails one by one you can compute a md5sum for each and use a hash to store the md5 values.
    all you need is to copy the mail each time you see the md5 value is not in hash.
    in the end you will have only uniq mails.

    best regards


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •