what I want to do is advance to the next element and assign that value (in this case 1-1024) to a variable...$args = "nmap -sS -iL ips.txt -p 1-1024 172.27.1.4"; @list = split(/\ /, $args); foreach $list (@servicelist) { if ($list =~/-p/) { ......
In reply to find element in array, then advance to next element by kathys39
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |