in reply to read IPv4 addresses from array
You can iterate over a list (or an array) using the foreach construct (see perlsyn):
foreach my $ip (@ipconadd) { print "Processing $ip:\n"; # ... print "IP $ip done.\n"; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: read IPv4 addresses from array
by andreyns (Initiate) on Aug 18, 2015 at 09:00 UTC | |
by Corion (Patriarch) on Aug 18, 2015 at 09:06 UTC | |
by andreyns (Initiate) on Aug 18, 2015 at 09:50 UTC |