(if he'd meant that the line should only contain capital letters, he wouldn't have mentioned the no numbers part)while (<DATA>) { print if $_ !~ /[[:lower:]\d]/; } __DATA__ THIS LINE IS ALL CAPS THIS LINE IS CAPS WITH 012 THIS LINE has lowercase THIS LINE has lowercase and 012
In reply to Re: Recognizing all-caps line
by TedPride
in thread Recognizing all-caps line
by ParisR
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |