in reply to Clearing user defined variables

I had to check if the reset function really exists at all, and was shocked to find that it does.

Yes, I think it's safe to say you should use another way to do what you want.

My advice would be to use my lexically local variables - declare them at the start of your loop, and initialize them the way you want them.

The method you are proposing is dangereous, inefficient, and pretty much guaranteed to break the moment you make a change to your script without paying specific attention to your hack.

Replies are listed 'Best First'.
Re: Re: Clearing user defined variables
by ambrus (Abbot) on Apr 13, 2004 at 17:25 UTC

    Strange... I had to check reset too. I knew that it resets ?? patterns but I thought it doesn't do anything else (maybe something with .. flip-flops?). But after all this talk in the thread about it I started to suspect that it does something else too. And indeed. (This is not a new feature, it was in 5.005_03 too)