in reply to Re: Re: Re: Need help with subdividing SGML files
in thread Need help with subdividing SGML files
I put about as much effort into my answer as you have into your question, and your answers to requests for further information.
As you seem incapable of reading documentation, I'll hold your hand a little further. This loop will execute exactly three times regardless of the values of any of the variables involved.
for ($i = 0, $i < @InFileNames, $i++) {
During the first iteration, $_ will be set to 0 (zero). During the second it will be set to either 0 or 1, most probably 1 unless @InFileNames is empty. The third iteration $_ will be set to 1.
The value of $i will be zero for the first two iterations and 1 for the third.
Similarly, this loop will also execute exactly 3 times regardless of the values of the variables involved
for ($j = 0, $j < @OutFileNames, $j++){
Again, $_ will take the values 0, 0|1, 1 during the three iterations. The value of $j will be 0, 0, 1 for those 3 iterations.
It is pretty certain that this is not your intention. All the information regarding what is wrong, and how to put it right is available in
If you had taken the constructively intended advice I offered, and looked up the syntax of for loops, I wouldn't have to be pointing these mistakes out to you.
As for my tone........on my screen, it is black on white, any other tone you infer from the way the text is displayed on your screen is beyond my control.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Need help with subdividing SGML files
by DukeLeto (Novice) on Mar 12, 2003 at 23:45 UTC |