How to connect Sybase with perl?
Posted on 1998-12-07
I have try to connect the Sybase with the program as follow:
However, the server reply that the Sybase/DBlib is not found and cause the compilation error.
Can anyone tell me how and where to get the DBlib and CTlib?
Is there any special condition to install these library since i am not the system admin?
Also, can anyone give me some code (or sample code that can connect to the Sybase)?
Thank you very much!
The following is my code:
print "Content-type: text/html\n\n";
$dbh = new Sybase::DBlib 'user', 'password';
$dbh->dbcmd("select name, category from product");
while(@data = $dbh->dbnextrow)
foreach $data (@data)