in reply to Don't know how to resolve
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"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Don't know how to resolve
by Anonymous Monk on Oct 04, 2007 at 10:17 UTC |