![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re: Range Issue with RegExby VSarkiss (Monsignor) |
on Jul 10, 2006 at 15:59 UTC ( #560173=note: print w/replies, xml ) | Need Help?? |
As above, I'd recommend using number equality instead of regular expressions if that's what you really mean. The range operator and grep are handy for this, like in this (untested) snippet: (Remember that the $_ in the grep expression is not the same as the $_ in the while loop. More info at grep.)
In Section
Seekers of Perl Wisdom
|
|