in reply to Re^3: help! Please please help!
in thread help! Please please help!

Corion,
That line you mentioned is line 39!

Right, ill have a go with data::dumper and see where it gets me.

Im still confused though, i thought I was refereing to a line in hash, which had the IP's as the keys and the results stored in an array, as there might me more than one and I needed to refer to them serperatly. Or do I have the worng end of the stick there?

Cheers

Replies are listed 'Best First'.
Re^5: help! Please please help!
by amarquis (Curate) on Mar 14, 2008 at 14:29 UTC

    Net::RBLClient's listed_by() method returns a list of servers blocking an IP. You assign this to an array, and assign a reference to that array to an element of your hash. If you want to iterate over that array, you can just use something like the following instead of your foreach:

    #This line isn't needed anymore #my $blackholes = $tpl->new_loop("listings", $omr); for my $server ( @{$rbl_list{$omr}} ) { #do something for each server in the array }