Paul said:
What are you asking? Your subject says "what's wrong with @$ip?", and
Perl is telling you exactly what's wrong with it - $ip is not an array
reference. You can therefore not dereference it as an array. $ip is an
object of type NetAddr::IP.
Perhaps you should try telling us what you're *trying* to do.
Okay, so I should really learn to read the docs of a module with which I
am unfamiliar before making a post like that. It seems the NetAddr::IP
class does support dereferencing its objects as arrays. I apologize for
my comments.
Given that, I would presume that the constructor did not return a valid
object. You can test that by inserting these lines:
use Data:
umper;
print Dumper($ip);
If that does show that $ip is an object of NetAddr::IP, then perhaps you
are using a previous version of the module, which does not support the
dereferencing. Try printing $NetAddr::IP::VERSION. The latest on CPAN
is 3.20.
Excuse me while I now try to extract my foot from my mouth.
Paul Lalli