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)
In reply to Re: newbie parse Q
by jeffa
in thread newbie parse Q
by whatperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |