Re: Unable to reference variable from one loop to another in same script

2007-06-17 Thread Tom Phoenix
On 6/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: The problem is that when I reference a variable in the second while loop that I initialized in the first while loop, the script doesn't recognize it. You need to assign to a variable from an outer scope while executing the inner scope. T

Unable to reference variable from one loop to another in same script

2007-06-17 Thread shadkeene
Hi, I'm able to parse different data in the same loop...however, now I'd like to extract data from two files, using two while loops after opening each .txt file...then do arithmetic with the data I extracted. The problem is that when I reference a variable in the second while loop that I initialize