in reply to matching between 1 to 8 digits but not more
if ($Number =~ /\d{9}/) { print "Line has more than 8 digits!\n" } elsif ($Number =~ /\d/) { $N = $Number; } else { print "Line has no digits at all!\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: matching between 1 to 8 digits but not more
by Anonymous Monk on Aug 21, 2009 at 14:12 UTC |