No, allow me to repeat: $i as global was the main problem in your program, it prevented the program to work.
But it is not the only problem: all the other things I mentioned are time bombs waiting for the first time you change something in the code to explode.
Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."
In reply to Re^3: File Indexing program
by psini
in thread File Indexing program
by chetanspecial
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |