How can I have an array in a class attribute?

In my constuctor this is not working: (I need $self->{ARRAY} to be an array)


sub new
{
    my $class = shift;
    my $self = { };
    $self->{IFCONFIG} = "/etc/ifconfig.temp";
    $self->{NEWIP} = "/home2/nas3/nas/.newip.temp";
    $self->{IP} = undef;
    $self->{SOURCE} = "ifconfig";
    $self->{ARRAY} = undef;

    bless($self, $class);
    return($self);
}

I'm getting this error message: Can't coerce array into hash at
packages/cp_IP.pm line 244.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to