in reply to Need help making the change to OO
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 |