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"; }
In reply to Re: matching between 1 to 8 digits but not more
by JavaFan
in thread matching between 1 to 8 digits but not more
by ozgurp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |