in reply to Array question
grep is the right approach:
my @found = grep { / 9\d+%/ } @your_array;Update: Oh, I was sorting ASCIIbetically. Try:
my @found = grep { / (?:100|9\d)%/ } @your_array;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: searching array elements
by tachyon (Chancellor) on Sep 22, 2004 at 23:33 UTC | |
by graff (Chancellor) on Sep 23, 2004 at 12:24 UTC |