in reply to Clearing user defined variables
Eg:
sub reset_all { $x = undef; $counter = 1; } [download]
C.