![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Pattern Matchby Ratazong (Monsignor) |
on Jun 08, 2017 at 06:21 UTC ( #1192328=note: print w/replies, xml ) | Need Help?? |
Dear Nansh, the main reason why the dotstar is considered evil: it often doesn't do what you want. In your example it would also match Fruits{ }{ }. You can see a detailed discussion in Ovids famous node Death to Dot Star!. Of course if you know exactly what you do, the dotstar is a powerful weapon. Not using the dotstar typically forces you to think more on your expected content. In you case, you are expecting letters and (probably) blanks as separators. So you could simply look up the shortcodes for them, e.g. in the documentation. HTH, Rata
In Section
Seekers of Perl Wisdom
|
|