in reply to DBD::Sybase and win32

Using the BEGIN hack, and the message as you included it, it appears that 'c:\w03g\sybase\r120500' evaluates to 'as'. I suspect this is an issue with Perl trying to convert your \'s into escapes. "Win32 Perl Programming : The Standard Extensions" covers this. Try using forward-slashes and see if it works any better (or doubling all of your back-slashes). I am not sure this will work, but it might, so, worth a try. Unfortunatly, i am on a non-Perl machine, and cannot test :/
from the frivolous to the serious

Replies are listed 'Best First'.
Re: Re: DBD::Sybase and win32
by busunsl (Vicar) on Feb 01, 2002 at 09:13 UTC
    Sorry to mislead you.

    I just changed the SYBASE variable to something, in that case 'as'.
    So the error message shows that the original setting of the variable is used by DBD::Sybase and not the one in the BEGIN block.

    I tried both in my BEGIN block, 'c:\w03g\sybase\r120500' as well as '/w03g/sybase/r120500'.

    Both led to the same error.
    The system('echo %SYBASE%'); shows that the variable is set correctly in the BEGIN block, DBD::Sybase just ignores this setting and uses the value set in the shell.