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
In reply to Re: Reg Expression Question
by bwana147
in thread Reg Expression Question
by Kevman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |