in reply to Re: File Indexing program
in thread File Indexing program

Thank you very much psini and that was fast. the only problem in the program was $i which was not localised.
i must change $i to my $i.
but i also observed that this was a lot slower than compared to a c++ program and took a lot of time.but anyway it worked perfectly. thanks again

Replies are listed 'Best First'.
Re^3: File Indexing program
by psini (Deacon) on Jun 24, 2008 at 19:43 UTC

    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."