in reply to find element in array, then advance to next element
my $ports = $args =~ m/-p\s+([-\d]+)/;
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: find element in array, then advance to next element
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 |