What type of database? Which records do you want out: record key based or any field matched, etc? Anyway, here's an example to deduplicate array elements
%unique = ();
foreach $item (@array)
{ $unique{$item}++ }
@unique = keys %unique;
A simple database can be done using an array ofcourse :)
Greetz
Beatnik
... Quidquid perl dictum sit, altum viditur.