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
    Thanks for the answer

    I do understand basic reg expressions, but I was unsure how to use the range on numbers...

    But either answer will do me!!!
    Kev