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 |