![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Re^3: Matching numeric value between two digitsby Crackers2 (Parson) |
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
|
|