in reply to "cleaning out" object data
my $self = shift;
%$self = ();
This is also the scheme by which ImageMagick's Perl bindings module suggests you "remove all images without removing the object." Well, it's an array reference, so they document the idiom as @$magick = (), but same thing.
--[ e d @ h a l l e y . c c ]
Results (120 votes). Check out past polls.