in reply to Need help making the change to OO

Thanks to everyone for your responses. This was a coding error...I overreacted and assumed that my problem was with the fact that I should be using an oo approach and not what I currently have.

I was trying to store an object as the key of a hash, not the value.

I think if my script had been using more oo vs the mix of hohoa madness I currently use, that it would have been easier to work with.

Just for the record, this is what I ended up using:
my $cidr = Net::CIDR::Lite->new; $sites{$site}{'ipinfo'}{$cidr->add_any($ip_subnet)};

Replies are listed 'Best First'.
Re^2: Need help making the change to OO
by muba (Priest) on Jun 27, 2012 at 19:11 UTC

    Are you sure? And that does what you want?