in reply to Object Swaps

You'll want to assign directly to $_[0].
sub change { my ($self, $id) = @_; $_[0] = Test->new($id); }

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;