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: Mark dot Lonsdale at fw dot gs dot com (Mark Lonsdale - System Services)
Subject: Sybperl query
Date: Nov 21 1995 12:11PM


Hi,

I am just starting to get into sybperl and have come across a problem that has
been bugging me for about a day now.

What I want to do  within my script is to log into 2 different servers which
are referenced in 2 seperate interfaces files.  I assumed that sybperl would
look for the interfaces file in the location specified by the SYBASE variable.
 Assuming this what I have done is as follows :-

$ENV('SYBASE')="/tmp/firstlocation";

$firstconnection=&dblogin($user, $password, $firstserver)

$ENV('SYBASE')="/tmp/secondlocation";

$secondconnection=&dblogin($user, $password, $firstserver);

What happens is is that it cannot find the second server entry in the
interfaces file as it is still looking in the first interfaces file (i.e. It
doesn't seem to have picked up the change in variable).  I am using perl v4.0
on SunOs 4.1.3

Thanks

Mark