Originally Posted By: tylan

So, what's the big deal with global variables? If I don't reuse variable names, what's the problem?
....


There is no problem if you remember all your variables and anyone who has anything to do with the script like changing it and stuff keeps the same standards as you do. Also when you are relying on some variables to be there in a child script and a previous child script did something with the same names for the variables then you are screwed.

Usually with variables to filter screen output like $rc = open (1, “c:\somefile.txt”, 5) there is no problem.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.