on Mon, 06 May 2002 12:36:49 GMT, [EMAIL PROTECTED] (Darryl
Schnell) wrote: 

> [...]
> If it finds information in table one but not in table two it is to
> perform certain commands to place that user in table two, and vice
> versa. 
> [...]

Why don't you use hashes to collect your information?

    my %emailnames = ();
    my %sub_names = ();

Instead of

>     push @emailname,$dat[0];

write

      $emailnames{$dat[0]}++;

Instead of 

>   push @sub_name,$user;

write 

        $sub_names{$user}++;

Now finding information in table one which is not in table two is 
easy:

    foreach my $k (keys %emailnames) {
        unless ( exists($sub_names{$k}) ) {
            # insert info into table two
        }               
    }

-- 
felix

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to