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"; };
In reply to Re: read IPv4 addresses from array
by Corion
in thread read IPv4 addresses from array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |