Re: [Nolug] Perl question

From: Mark A. Hershberger <mah_at_everybody.org>
Date: Tue, 03 Feb 2004 11:23:44 -0600
Message-Id: <1075829024.1716.11.camel@localhost>

On Tue, 2004-02-03 at 11:00, Wimprine, Thomas wrote:
> I'm working on a perl script and I'm getting this error

> Can't use an undefined value as an ARRAY reference at ./logdisk.pl line 23.

I think your problem is this line:

  my @devices = @{$vm->get("Status.devices")};

$vm->get("Status.devices") is returning undef.

I could be wrong, but that's the only attempt to treat anything as ARRAY
reference that I see in the script.

Mark.

___________________
Nolug mailing list
nolug@nolug.org
Received on 02/03/04

This archive was generated by hypermail 2.2.0 : 12/19/08 EST