kathys39 has asked for the wisdom of the Perl Monks concerning the following question:
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/) { ......
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: find element in array, then advance to next element
by toolic (Bishop) on Dec 09, 2008 at 17:56 UTC | |
|
Re: find element in array, then advance to next element
by ikegami (Patriarch) on Dec 09, 2008 at 17:49 UTC | |
|
Re: find element in array, then advance to next element
by CountZero (Bishop) on Dec 09, 2008 at 17:54 UTC | |
by kathys39 (Acolyte) on Dec 09, 2008 at 19:01 UTC | |
by almut (Canon) on Dec 09, 2008 at 19:16 UTC | |
by kathys39 (Acolyte) on Dec 09, 2008 at 19:19 UTC | |
by CountZero (Bishop) on Dec 09, 2008 at 20:24 UTC |