On Jul 7, Luis said:
>"Can't use string ("1") as a HASH ref while "strict refs" in use at
>TestObject.pm line 21."
> sub insertFriends {
> my $self = @_;
The problem is that $self is not what you think it is. You have stored
the number of elements in @_ into $self. You meant
my ($self) = @_;
or
my $self = $_[0];
or
my $self = shift;
--
Jeff "japhy" Pinyan % How can we ever be the sold short or
RPI Acacia Brother #734 % the cheated, we who for every service
http://japhy.perlmonk.org/ % have long ago been overpaid?
http://www.perlmonks.org/ % -- Meister Eckhart
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>