in reply to Infinite loop with each

You Said:

When I step in to the loop, it results in infinite loop. When directly run, it works fine as expected.

The crucial point to take away from this is that your debugger is a bit buggy -- it is altering your code and resetting the iterator that each() uses to keep its sanity.

Eclipse is a good IDE framework for languages that need an IDE framework. Perl really doesn't need it, though. There is a very serviceable debugger already at your beck-and-call in the '-d' switch (perl -d my-new-perl-program). There is no real need to go and buy a Ferrari when you already have a VW-Beetle in the garage.

I played with Eclipse and various of its plug-ins and friends a few years back when I was learning to loathe Java. Eclipse is a nice tool, it just isn't really needed with Perl. I have been using vim in one window and perl -d on the command-line in another window rather successfully for the past mumbledy years ....

----
I Go Back to Sleep, Now.

OGB