blackjudas has asked for the wisdom of the Perl Monks concerning the following question:
[1, 2, 4, 5, 6, 8, 15];
[1, 3, 4, 5, 6, 7, 9];
my @delete = (); my @add = (); my $found = ''; for my $form_id (@tax_ids) { $found = ''; for my $db_id (@db_state) { if ($db_id != $form_id) { next; } else { $found++; } } if (!$found) { push @add, $form_id; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Supreme Laziness
by merlyn (Sage) on Sep 25, 2001 at 20:57 UTC | |
by blackjudas (Pilgrim) on Sep 25, 2001 at 23:46 UTC | |
|
Re: Supreme Laziness
by suaveant (Parson) on Sep 25, 2001 at 20:51 UTC | |
|
Re: Supreme Laziness
by dragonchild (Archbishop) on Sep 25, 2001 at 20:54 UTC | |
|
Re: Supreme Laziness
by tomhukins (Curate) on Sep 25, 2001 at 20:58 UTC | |
|
(tye)Re: Supreme Laziness
by tye (Sage) on Sep 25, 2001 at 23:12 UTC |