Name your text input 'url' You might have to modify the delimiter in the split function (currently tab), the filename of your database and the shebang line. To retrieve better error messages in CGI uncomment use CGI::Carp

The code is untested but should give you an idea. -- Don't reinvent the wheel, use it, abuse it or hack it.

I've learned it the second method and later started to use the object oriented method without dropping the qw(:standard). I learned oo with "new CGI", seems to be hard to drop that too for I usually use Module->new.

Well, I'll try to stop doing it now. -- Don't reinvent the wheel, use it, abuse it or hack it.