That means that $self->{'netstat_array'} is sometimes undef. The first questions I'd ask myself are: why is it undef, and is undef a valid value for that variable? A quick workaround might be to write @{ $self->{'netstat_array'} // [] }, but that won't solve the root of the issue. For more help please read and follow How do I post a question effectively?
In reply to Re: Perl array reference error
by Anonymous Monk
in thread Perl array reference error
by user786
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |