Newsgroups: comp.lang.perl Path: utzoo!utgpu!cunews!rmallett From: rmallett@ccs.carleton.ca (Rick Mallett) Subject: Accessing shell variables in perl. Message-ID: <1991Apr18.180531.16570@ccs.carleton.ca> Sender: rmallett@alfred.carleton.ca Organization: Carleton University, Ottawa, Canada Distribution: comp.lang.perl Date: Thu, 18 Apr 1991 18:05:31 GMT I am writing a perl script which I must, for the time being, integrate with some csh scripts. 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. Needless to say I am a rank amateur at perl and the solution might indeed be trivial but after two hours of hacking I haven't managed to trip over the answer. Yes I do realize that I could use environment variables using $ENV{'xxxx'} or modify the calling script to pass the variables as command line arguments, but I would much rather simply integrate my perl script without changing the csh script which invoked it. Any suggestions?