![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: find acronyms in a textby davorg (Chancellor) |
on Jul 23, 2009 at 14:59 UTC ( [id://782695]=note: print w/replies, xml ) | Need Help?? |
my @words = $_ =~ m/\b[A-Z]+\b/g; Aren't you missing capturing brackets there?
foreach(@words) { $acronyms_captured{$_} = undef; } Personally, I'd write that as:
I like hash slices a lot :-)
In Section
Seekers of Perl Wisdom
|
|