|Do you know where your variables are?|
Matching data against non-consecutive rangeby Popcorn Dave (Abbot)
|on Jan 27, 2005 at 05:00 UTC||Need Help??|
Popcorn Dave has asked for the
wisdom of the Perl Monks concerning the following question:
I've tried super search on this and came up empty.
I'm trying to do a match of data that is non-consecutive as the code below shows. This is to figure out the UPS zone for shipping. I realize that Business::UPS does this but I'd rather hard code the zones as opposed to doing the LWP lookup each time as the module does.
When run, the above code gives me an error:
but I'm not sure how to match it against the range I've specified.
I understand that it's seeing the 6-3 and thinking that it's already tried to match against 10-374, so how can I get the regex to match against the entire range?
Useless trivia: In the 2004 Las Vegas phone book there are approximately 28 pages of ads for massage, but almost 200 for lawyers.