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: larsenc at pathfinder dot com (Cliff Larsen (Pathfinder))
Subject: Re: SybPerl error.
Date: Sep 10 1997 1:43PM

Daniel,

It looks like a typo to me.
It appears that you transposed the "c" and the "m".
(dbcmd not dbmcd).


CDL


ddrumm@rush.edu wrote on Tue, 9 Sep 1997 18:05:37 -0500 (CDT):
> I tried to use the 'update' SQL command for the first time with SybPerl
> 2.03 and Perl 5.002. Much to my chagrin, I got this error:
> 
> Can't locate auto/Sybase/DBlib/dbmcd.al in @INC at ./update.pl line 15
> 
> I looked, and there was no dbmcd.al file in this directory. Only the
> following:
> 
> autosplit.ix  dbclose.al    dbsucceed.al  sql.al
> 
> What does the .al stand for? 
> Why wouldn't dbmcd.al be there? I checked my /usr/local/src tree, where I
> still had copies of everything, and it wasn't there either.
> 
> Here was my program:
>  
> #!/usr/local/bin/perl
> 
> $ENV{'SYBASE'} = "/opt/sybase";
> use Sybase::DBlib;
> 
> $name = "foo";
> $password = "bar";
> $dbproc =  Sybase::DBlib->dblogin("$name","$password","SYBASETEST");
> 
> $uid = 2001;
> $passwd = "hal";
> 
> $dbproc->dbuse('TestDB');
> $dbproc->dbcmd("update Testtable");
> $dbproc->dbmcd("set passwd = \"$passwd\"");   # Line 15 - error
> $dbproc->dbcmd("where uid = $uid");
> $dbproc->dbsqlexec;
> 
> 
> --
> Daniel G. Drumm - ddrumm@rush.edu
> Rush Presbyterian St. Luke's Medical Center - Chicago, IL
> Network Division - Information Services
> 



+-----------------------------------------------------------+
| Cliff Larsen                |   Systems Administrator     |
| cdl@pathfinder.com          |   Time Inc., New Media      |
| cdl@alum.mit.edu            |                             |
+-----------------------------------------------------------+
"Good-bye.  I am leaving because I am bored."
		-- George Saunders' dying words