http://www.perlmonks.org?node_id=337880


in reply to Infinite loop yet no loop

I thought the recursion was the cause of it, so I deleted it to verify it, and it wasn't. It did the same thing again.

This is embarrassing, so forgive me (and heaven help me), but this sort of statement reminds me of a mistake that I still make on occasion: I have the script in an editor window, where I see the code that I've just changed, and I run it in a separate shell window... forgetting to notice that I hadn't done the "save buffer" command in the editor, or forgetting that I saved the modified "test/debug" version under a different path/name -- hence I'm still running the prior version of the script in that shell window. But I'm sure I'm the only one who ever does this...

Replies are listed 'Best First'.
Re: Re: Infinite loop yet no loop
by Theo (Priest) on Mar 19, 2004 at 10:21 UTC
    No, you're not alone. Another gotcha for me is modifying a file in directory A and running a copy of the file which lives in directory B.

    -Theo-
    (so many nodes and so little time ... )