Think about Loose Coupling | |
PerlMonks |
Re: Answer: How do I match a number range?by quidity (Pilgrim) |
on Nov 28, 2000 at 06:14 UTC ( [id://43595]=note: print w/replies, xml ) | Need Help?? |
You want $number =~ /^($range)$/ instead. Also, you need to create a potentially large list in memory then turn it into a large string. For numbers of this size, this isn't really a problem, but what if you are trying to match unix time values, that's 780k just to match a one day time frame.
In Section
Seekers of Perl Wisdom
|
|