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, ); } }

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re: "Modification of non-creatable array value attempted, subscript -1" Error
  • Download Code