$line =~ /\d+/
Nice variant. In some ways it better matches the spec than my offering, but you got the conditional the wrong way round. You want $line !~ /\d/ methinks (and the + is not necessary, one is all you need to make it fail).
- another intruder with the mooring of the heat of the Perl
In reply to Re^2: Recognizing all-caps line
by grinder
in thread Recognizing all-caps line
by ParisR
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |