in reply to Keeping data in an object

You need to change the name of your module as it conflicts with the standard module of the same name Test (or use lib, but a name change is probably the more sensible option). Once you've sorted that out you might also want to change your methods to something a bit more sensible like
sub first_name { my( $self, $args ) = ( shift, {@_} ); $self->{ first } = $args->{first}; return "First Name: $args->{first}\n"; }
As this way you aren't re-assigning the object's reference (not that it affects the object itself) and you're also assigning the specified arguments passed in to $self so that the full_name method will behave as expected.
HTH

_________
broquaint

Replies are listed 'Best First'.
Re: Re: Keeping data in an object
by AzaBat (Acolyte) on Jun 29, 2003 at 01:57 UTC

    Thanks broquaint & antirice, that answers a lot of the questions in my head. I thought I might be clobbering my blessed $self. I just couldn't figure a way stop it.