Re: use with variable

2010-03-11 Thread Paul Johnson
On Wed, Mar 10, 2010 at 04:48:54PM +0100, Christoph Friedrich wrote: > Could I also write > > eval { use Env::Sourced "$oraenv"; } or die "Error in Eval $_"; > > to do the use on run time? You'd need string eval: eval "use ..." See also Shell::Source which doesn't do the work at compile time.

Re: use with variable

2010-03-10 Thread Christoph Friedrich
Could I also write eval { use Env::Sourced "$oraenv"; } or die "Error in Eval $_"; to do the use on run time? Greets Christoph Jay Savage schrieb: On Wed, Mar 10, 2010 at 5:56 AM, HACKER Nora wrote: Hi list, I want to use the Env::Sourced module for setting some environment variables de

Re: use with variable

2010-03-10 Thread Jay Savage
On Wed, Mar 10, 2010 at 5:56 AM, HACKER Nora wrote: > Hi list, > > I want to use the Env::Sourced module for setting some environment > variables depending on the Oracle version of a certain database: > > ~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ > ~ ~~ ~ ~~ ~ ~~ ~ ~

Re: use with variable

2010-03-10 Thread Shlomi Fish
Hi Nora, On Wednesday 10 Mar 2010 12:56:52 HACKER Nora wrote: > Hi list, > > I want to use the Env::Sourced module for setting some environment > variables depending on the Oracle version of a certain database: > > ~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ > ~ ~~ ~

Re: use with variable

2010-03-10 Thread Robert Wohlfarth
On Wed, Mar 10, 2010 at 4:56 AM, HACKER Nora wrote: > Hi list, > > I want to use the Env::Sourced module for setting some environment > variables depending on the Oracle version of a certain database: > > ~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ > ~ ~~ ~ ~~ ~ ~~ ~ ~

use with variable

2010-03-10 Thread HACKER Nora
Hi list, I want to use the Env::Sourced module for setting some environment variables depending on the Oracle version of a certain database: ~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~~ ~ ~ #!/usr/bin/perl -w use strict; use warnings; sub fnc { m