in reply to "Modification of non-creatable array value attempted, subscript -1" Error
I don't have the module installed, but what happens if you remove the (pointless) outer for loop?:
while(<LIST>) { chomp; my @output = $w->network($_); foreach my $net(@output) { printf( "CIDR: %s\tNetName: %s\tNetHandle: %s\n", $net->CIDR, $net->NetName, $net->NetHandle, ); } }
|
|---|