in reply to Clearing user defined variables

I may be missing something here, but why go to all this trouble? Whats wrong with just writing a subroutine which sets all the variables to whatever default value you want them to have, and calling that whenever appropriate?

Eg:

sub reset_all { $x = undef; $counter = 1; }
And so on..

C.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.