|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re^3: Matching numeric value between two digitsby Crackers2 (Vicar) |
| on Feb 04, 2013 at 23:27 UTC ( #1017028=note: print w/ replies, xml ) | Need Help?? |
|
You weren't doing the check on $1 in your original code.
The /\d{1}-\d{2}/ is done on $_, not $1. BTW you could just do the whole-number check right away:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||