in reply to Recognizing all-caps line

You could start by reading the documentation. The first place to start looking would be perlre.

Your question is a little ambiguous, because you say "all-cap letters" and "no numbers". What of the rest of the character set that is neither a letter (uppercase or not) or a digit?... Spaces, punctuation, control characters and so forth.

Be that as it may, a nudge in the right direction would be something like:

if( $line =~ /^[A-Z]+$/ ) { # matched } else { # did not match }

You may have to amend the character class in order to achieve exactly what you want.

- another intruder with the mooring of the heat of the Perl

Replies are listed 'Best First'.
Re^2: Recognizing all-caps line
by DrHyde (Prior) on Oct 28, 2004 at 08:39 UTC
    Read the documentation? That's crazy talk, why would anyone want to do that when they can get tech support here for free?