in reply to Re: Re: Clearing user defined variables
in thread Clearing user defined variables

Unless I'm missing something, all reset does is undef a gang of variables at once. All that the OPs snippet does is assigns the nothing string to scalars, and the empty set to arrays, so I guess it'd be
foreach(keys %globals){ if( ref $globals{$_} eq 'ARRAY' ){ @{ $globals{$_} } = (); } else { $globals{$_} = ''; } }

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.