PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Michael Peppler <mpeppler at MBAY dot NET>
Subject: Re: setting SYBASE env variable?
Date: Feb 16 1998 9:35PM

Lal Bandaru wrote:
> 
> Hi,
> 
> I am trying to use SybPerl to access Sybase database thru a cgi program.
> 
> Its complaining that the SYBASE env variable is not set properly.
> My question is: Is the variable set during the installation of sybperl
> or is there
> any method to set "SYBASE" env variable in a cgi-bin program.

Put this before the 'use Sybase::CTlib' request:

BEGIN {
   $ENV{SYBASE} = "/path/to/sybase";
}

Michael
-- 
Michael Peppler       -||-  Data Migrations Inc.
mpeppler@datamig.com  -||-  http://www.mbay.net/~mpeppler