in reply to Reg Expression Question
You should use grep for that:
if ( grep { $_ == $i } (0, 5, 8, 15, 20) ) { ... }
And read perlre to learn what regexes are and what they are not.
--bwana147
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Reg Expressions Knowledge
by Kevman (Pilgrim) on Aug 31, 2001 at 12:18 UTC |