in reply to shell script via perl (clarification)

What you want to do works (as you should know, you did try it before asking, didn't you?)

What the statement means is that if a Perl program (and this is not limited to Perl, it's an OS thing that applies to all processes) executes a shell (or some other program) using system, and said shell or program sets or modifies an environment variable, this new value is only visible from that shell or program, and any other programs it calls. It's not noticeble from the Perl program that called the shell.

In fact, it's not unlike local.

Perl --((8:>*
  • Comment on Re: shell script via perl (clarification)

Replies are listed 'Best First'.
Re^2: shell script via perl (clarification)
by toronto75 (Novice) on Dec 07, 2005 at 11:18 UTC
    Thanks everyone for your replies. Oh yes, I've tried it. In fact, I hate to admit that I have been trying to get it to work for 6 straight hours now. I think I may have a different problem with a parameter that the final binary requires. Anyway it took me a while to finaly come here and ask. I try to figure things out on my own as I am trying to rely on google and the perl docs. Buut.. I must be slow because I have read and re-read the docs on it and didnt quite get it. But I think I have a better understanding now thanks to everyone here. : )