in reply to DBD::CSV and unique keys

You could always query the table to find out how many rows it has, then start to insert with $numRows + 1 as your first unique key, incrementing this variable for each row thereafter.

That'd work as long as you're not threading, or running multiple instances of the script at the same time.

Hope that helps ..
--Foxcub

Replies are listed 'Best First'.
Re: Re: DBD::CSV and unique keys
by LanceDeeply (Chaplain) on Nov 14, 2002 at 16:53 UTC
    carefull with this.... if you start deleting rows, ($numRows + 1) wont guarantee uniqueness.

    if you choose to do the config file way- take a look around here for some good file locking examples.

    here's the file locking tutorial.