Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Check For Dupes In FLat DB Before Adding

by lisaw (Beadle)
on Dec 14, 2005 at 20:33 UTC ( [id://516756]=note: print w/replies, xml ) Need Help??


in reply to Re: Check For Dupes In FLat DB Before Adding
in thread Check For Dupes In FLat DB Before Adding

Hi! There are multiple records on one file that has the email address and name. I just need to check to see if there are duplicate emails only.
  • Comment on Re^2: Check For Dupes In FLat DB Before Adding

Replies are listed 'Best First'.
Re^3: Check For Dupes In FLat DB Before Adding
by pileofrogs (Priest) on Dec 14, 2005 at 21:14 UTC

    Okay, to further refine my understanding of your question:

    You say you're trying to eliminate duplicate emails. You also say you're trying to add email in places where there isn't one before. Those sound like two different things.

    When you say duplicate emails, do you mean that no 2 records should have the same email? Or do you mean that no record should have 2 emails?

    When you're adding an email to records that don't already have one, are you adding the same email over and over (causing duplicates) or do you have a list of emails to add?

    Maybe it would be easiest if you posted a chunk of your flat file DB as a 'before' and 'after', with the 'after' section manually fixed.

    -Pileofrogs
      Hi pileofrogs, What I'm trying to do is the following...allow users to add themselves to a flat database which looks like this(split with an "=" sign):
      user1@website.com=users name 1 user2@website.com=users name 2 user3@website.com=users name 3 user4@website.com=users name 4
      If a user tries to add themselves, using an email address that already exists in the database, then they are told to use a different email....If the email doesn't exist in the database then the email and name are added.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://516756]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-19 23:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found