#!/perl/bin/perl -w BEGIN { $ENV{SYBASE} = 'c:\w03g\sybase\r120500'; } use strict; use warnings; use DBI; system('echo %SYBASE%'); my $dbh = DBI->connect('dbi:Sybase:server=myserver', 'user', 'password' ) or die "could not connect"; # die message cut down here for shortness. #### The context allocation routine failed when it tried to load localization files!!
One or more following problems may caused the failure

Your sybase home directory is as. Check the environment variable SYBASE if it is not the one you want!
Cannot access file as\ini\objectid.dat
install_driver(Sybase) failed: DBD::Sybase initialize: cs_ctx_alloc() failed at C:/Perl/lib/DynaLoader.pm line 225.
Compilation failed in require at (eval 1) line 3.