in reply to Recognizing all-caps line
(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
|
|---|