in reply to newbie parse Q

I don't know about a single best way, but here's a pretty good way:

my @var = $line =~ /([A-Z]+)/g;

UPDATE: no blazar and ikegami -- he wrote something along the lines of "grab the capitolized letters" BEFORE he changed his question.

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Replies are listed 'Best First'.
Re^2: newbie parse Q
by ikegami (Patriarch) on May 11, 2006 at 22:36 UTC
    "I capitalized for demo purposes" implies these won't always be capitalized.
Re^2: newbie parse Q
by blazar (Canon) on May 12, 2006 at 10:30 UTC

    Hmmm, he wrote:

    give me the characters between the third \ and the ", assming you just read thru the text "add vdisk"

    IIUC, a stricter translation (also taking into account the example line of text) of that sentence to a match would be

    /add vdisk.*?(?:\\[^\\]*?){2}\\([[:alpha:]]+)\b/;