in reply to Importing environment variables from shell script file to Perl

Another idea: in the shell script, do

export blah=/tmp/test
to make these environment variables. Then your Perl script can use the %ENV hash to read these in. Thus, $ENV{blah} will have the value "/tmp/test"

Of course, this is assuming that's possible in this project, specs being specs and managers being managers.

--
tbone1
Ain't enough 'O's in 'stoopid' to describe that guy.
- Dave "the King" Wilson

  • Comment on Re: Importing environment variables from shell script file to Perl
  • Download Code

Replies are listed 'Best First'.
Re: Re: Importing environment variables from shell script file to Perl
by Roger (Parson) on Oct 24, 2003 at 01:14 UTC
    Ummm, no. He said specifically that the perl script is the parent of the shell script, not the other way round.