With the help of Mel from GossamerThreads, I managed to import all my links into SQL flawlessly. Here's how to do it:
1. Rename Import.pl to a Import.cgi.
2. with all of the use ....; statements, add:
use CGI;
3. after the use statements, add the lines:
my $in=new CGI;
print $in->header();
And that's it!
One more thing to double check, make sure the path to perl is the first line in the script. If it is not there, (usually it doesn't need to be because you would perl it from shell) add the line:
#!/usr/bin/perl
or whatever your path to perl is.
The errors from the import will be printed on the screen.
The import should be done from an empty database with just the tables created.
Adrian
1. Rename Import.pl to a Import.cgi.
2. with all of the use ....; statements, add:
use CGI;
3. after the use statements, add the lines:
my $in=new CGI;
print $in->header();
And that's it!
One more thing to double check, make sure the path to perl is the first line in the script. If it is not there, (usually it doesn't need to be because you would perl it from shell) add the line:
#!/usr/bin/perl
or whatever your path to perl is.
The errors from the import will be printed on the screen.
The import should be done from an empty database with just the tables created.
Adrian