Michael Peppler
Sybase Consulting
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
Sybase on Linux FAQ
Sybperl FAQ
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: DBlib works in script/not in mod
Date: Apr 13 2000 9:16PM

David Hojo Hajoglou writes:
 > Well, the $ENV{Sybase} is indeed set correctally. (I actually checked
 > this, sorry for not indicating that).  for posterity i added the line and
 > the error is the same:
 > /opt/sybase-11.9.2DB-Library error:
 > [Thu Apr 13 15:02:27 2000] [error] Can't call method "nsql" on an
 > undefined value at /usr/lib/perl5/site_perl/5.005/isoft/tw
 > line 17.
 > It seems to connect to the database, and then crap out.  Is there any sort
 > of debugging technique that I coule be using.

wrong. dblogin/new is returning undef (which is why you get the "can't 
call method foo on an undefined value" error message). The undef
return value is a sign that the login failed...


 > (This is connecting to the sybase server on the localhost)
 > > My guess is that the SYBASE env. variable is not set correctly when
 > > the modperl handler runs.
 > > 
 > > Michael
 > > 
 > > 

Michael Peppler         -||-  Data Migrations Inc.    -||-
Int. Sybase User Group  -||-
Sybase on Linux mailing list: