in reply to loop ending b4 I want it to

You pass an array to nsqry like so:
nsqry($domain, @{$AoH{$key}} ) ;

but, in nsqry you only pick up the first element of the array with

my $nssvr = shift @_ ; my $client = shift @_ ;

You could get all the IP addresses you pass to nsqry by using

my $nssvr = shift @_ ; my @clients = @_ ;

and then you'd have to loop over your existing code with something like:

for my $client ( @clients ) { ... }

update: Errors pointed out by jasonk corrected. Thanks jasonk

Replies are listed 'Best First'.
Re^2: loop ending b4 I want it to
by jasonk (Parson) on Oct 26, 2007 at 23:39 UTC

    And after all those changes, you still have exactly the same result, because my @clients = shift @_ is always going to give you a one-element array. I think you wanted to say my @clients = @_ although I tend to prefer the more concise my ( $nssvr, @clients ) = @_


    We're not surrounded, we're in a target-rich environment!