should do the trick.chomp $d; if($d =~ m/^\d{6}$/) { ### use ^ and $ for start and end print "Exact match\n"; } else { print "Not Correct\n"; }
In reply to Re: Don't know how to resolve
by svenXY
in thread Don't know how to resolve
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |