On 07/21/2006 02:08 PM, Jerry DuVal wrote:
When trying to use the class below I keep getting this error message. Any
idea's, I have tried everything.
Can't use an undefined value as a HASH reference at
/usr/share/perl5/Pace/Sockets/Client.pm line 37.
[...]
sub start1
{
my $self = shift;
my %hash = %{$self->{DATA}};
my $hash = %hash;
[...]
I can't be sure what line is line 37 because your program
formatted "strangely" in my mail-reader, but if {DATA} is not
defined for that hash (self), it'll create the error you got.
Also, what is "my $hash = %hash" intended to do? Print the
contents of $hash, and you'll probably be surprised. Perhaps
you wanted a slash before that %hash to create a reference.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>