Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Mon, 14 Apr 2003 06:57:54 +0800 From: Greg Matheson To: cygwin AT cygwin DOT com Subject: Re: Exim, .forward and DBD::Oracle Message-ID: <20030414065754.A13221@ms> Mail-Followup-To: cygwin AT cygwin DOT com References: <321323244855 DOT 20030410222844 AT familiehaase DOT de><3E9538B8 DOT 5010107 AT belkam DOT com><321323244855 DOT 20030410222844 AT familiehaase DOT de><3 DOT 0 DOT 5 DOT 32 DOT 20030410233114 DOT 007fcc30 AT incoming DOT verizon DOT net><3E963AF7 DOT 6060101 AT belkam DOT com> <3E96CA54 DOT 35118EA3 AT ieee DOT org><009201c30048$8cf1ad80$141ea8c0 AT dm> <3E96E558 DOT 9D8E5729 AT ieee DOT org><00d501c3004e$ee6a5160$141ea8c0 AT dm> <014d01c30109$221a7ac0$141ea8c0 AT dm> <007601c301c3$053adca0$141ea8c0 AT dm> <00f601c301e2$a104f840$141ea8c0 AT dm> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <00f601c301e2$a104f840$141ea8c0@dm>; from dm@belkam.com on Sun, Apr 13, 2003 at 21:32:15 +0400 On Sun, 13 Apr 2003, Dmitry Melekhov wrote: > Another problem is with perl in cygwin. > On Linux I can set > $ENV{PATH} and $ENV{ORACLE_HOME} inside > perl script, but in cygwin I had to write shell script to call perl script: Does it work in Linux if you DON'T set $ENV{PATH} and $ENV{ORACLE_HOME} inside your program? Are you sure they are not set elsewhere in your environment? > #!/bin/sh > PATH=/cygdrive/c/oracle/ora81/bin ORACLE_HOME='c:\oracle\ora81' > /home/tabel/test.pl > or I received following error: > install_driver(Oracle) failed: Can't load > '/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/auto/DBD/Oracle/Oracle.dl > l' for module DBD::Oracle: dlopen: Win32 error 126 at > /usr/lib/perl5/5.8.0/cygwin-multi-64int/DynaLoader.pm line 232 > if I try to call perl script from .forward. > This is thing I still don't understand. :-( Does it work in cygwin if you set them in a BEGIN { } block at the top of the script. Quoting perlmod, A "BEGIN" subroutine is executed as soon as possible, that is, the moment it is completely defined, even before the rest of the containing file is parsed. ... Because a "BEGIN" block executes immediately, it can pull in definitions of subroutines and such from other files in time to be visible to the rest of the file. I thought the problem might be setting environmental variables in perl perhaps only passes them to children of the process, but: greg AT 7106 ~ $ perl -e '$ENV{hey}="what?"; print $ENV{hey}' what? greg AT 7106 ~ $ shows this is not so. -- Greg Matheson Where do I have to be to get to Dr Bean's Penpal Pool where I want to be? Address: palpool --Dr Bean Domain: @cn91.chinmin.edu.tw -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/