I changed the format to CTlib
my $esm_server = $ENV{'ESM_SERVER'}; die "ESM_SERVER is not set\n" u
+nless defined $esm_server;
3 die "ESM_SERVER is empty\n" unless( length($esm_server) > 0 );
4 print "server is $esm_server\n";
5 my $esm_user = $ENV{'ESM_DBO'}; die "ESM_USER is not set\n" un
+less defined $esm_user;
6 die "ESM_USER is empty\n" unless( length($esm_user) > 0 );
7 print "user is$esm_user\n";
8 my $esm_passwd = $ENV{'ESM_DBO_PASSWD'}; die "ESM_PASSWD is not
+ set\n" unless defined $esm_passwd;
9 die "ESM_PASSWD is empty\n" unless( length($esm_passwd) > 0 );;
10
11
12 use Sybase::CTlib;
13 require "$ENV{ESM_LIB_PERL}/sybCTlib.pl"; die "Not there" unless $
+ENV eq "";
14
15 my $dbh = Sybase::CTlib ->new( $esm_user,$esm_passwd,$esm_server);
~
Kinly guide me why do i get Can't locate Sybase/CTlib.pm
The error msg is
Can't locate Sybase/CTlib.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at databasee.txt line 18.
BEGIN failed--compilation aborted at databasee.txt line 18.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.