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: How to retrieve Sybperl version?
Date: Jan 12 1999 4:50PM

>>>>> "philip" == philip c w chan  writes:

philip> Just wonder if there is any way to tell the sybperl version
philip> being installed? for example with perl we could do 'perl -v'
philip> to get the version.

perl -MSybase::DBlib -e 'print $Sybase::DBlib::Version, "\n";'
or
perl -MSybase::CTlib -e 'print $Sybase::CTlib::Version, "\n";'
or even

perl -MSybase::CTlib'(9999)'

THis last one uses a trick - it asks perl to load a Sybase::CTlib
where the VERSION value is at least 9999. When it fails it gives you
the version that it found:

kiruna (3:51PM):1 > perl -MSybase::CTlib'(9999)'
Sybase::CTlib 9999 required--this is only version 2.1001 at - line 0
BEGIN failed--compilation aborted.

Michael
-- 
Michael Peppler         -||-  Data Migrations Inc.
mpeppler@mbay.net       -||-  http://www.mbay.net/~mpeppler
Int. Sybase User Group  -||-  http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com