Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!decwrl!pa.dec.com!decuac!haven!uvaarpa!mmdf From: worley@compass.com (Dale Worley) Newsgroups: comp.lang.perl Subject: Accessing shell variables in perl. Message-ID: <1991Apr20.011556.21246@uvaarpa.Virginia.EDU> Date: 20 Apr 91 01:15:56 GMT Sender: mmdf@uvaarpa.Virginia.EDU (Uvaarpa Mail System) Reply-To: worley@compass.com Organization: The Internet Lines: 23 From: rmallett@ccs.carleton.ca (Rick Mallett) For this I need to be able to examine a shell variable created in a csh parent script, and I would also like to be able to create a csh variable from within the perl script, although the latter might be asking too much since I don't even know how to do it from within a csh script. You can't. You can't do it with a csh script, either, unless you 'source' it rather than running it. This is because shell variables are private to the shell process running the script, and the sub-script (which is run in a sub-process) can't get at them. Dale Dale Worley Compass, Inc. worley@compass.com -- Quality isn't Job 1. Job 1 is getting the code out the door as soon as possible with no bugs that the customer will detect in the first 5 seconds of execution. And in reality, this is what the customer will reward us for doing.