Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Pattern Match

by Ratazong (Monsignor)
on Jun 08, 2017 at 06:21 UTC ( [id://1192328]=note: print w/replies, xml ) Need Help??


in reply to Pattern Match

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1192328]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-25 04:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found