I tried the last piece of code here and it worked in command line fine. Here´s what I got when I simply tried to access the same script from web and print $getwhatetever in html. Server that I´m using is nt2000 and I think everything should be fine. System DSN - ODBC-driver ...is there simple explanation for this not so simple question? :)
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
Can't call method "Sql" on an undefined value at C:\Inetpub\wwwroot\cgi-bin\tietokanta\tietokanta.pl line 8.