my @words = $_ =~ m/\b[A-Z]+\b/g;
Aren't you missing capturing brackets there?
my @words = m/\b([A-Z]+)\b/g;
foreach(@words) { $acronyms_captured{$_} = undef; }
Personally, I'd write that as:
@acronyms_captured{@words} = ();
I like hash slices a lot :-)
In reply to Re^2: find acronyms in a text
by davorg
in thread find acronyms in a text
by steph_bow
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |