in reply to
Re: Extract sequence of UC words?
in thread Extract sequence of UC words?
This doesn't work because the space in the character class means it matches the first single space in the line and returns that. You need to ensure that the match starts with an UPPER alpha, and then continues with UPPER alpha or space:
print $data =~ m/(\b[A-Z][A-Z ]+\b)/;;
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.