in reply to Re: remove duplicates
in thread remove duplicates

Hi again, I tried to clean up the data as suggested, but isnt there some other way of making sure a key doesnt have duplicate values. (especially if the logs you r reading are > 25k) Please help

Replies are listed 'Best First'.
Re^3: remove duplicates
by Corion (Patriarch) on Mar 12, 2006 at 15:52 UTC

    I'm not sure I understand where your problem lies. A hash is the traditional way in Perl to check for duplicates. If your memory gets too small because you have too many different entries, you can use DB_File or any other tied hash that stores its data on disk instead of memory.

    If all that fails, you can always use a database.