Think about Loose Coupling | |
PerlMonks |
Re: Re: Patterns for your numbersby bronto (Priest) |
on Feb 07, 2003 at 12:50 UTC ( [id://233452]=note: print w/replies, xml ) | Need Help?? |
Thanks for the link, adrianh, it's on my notepad now. Anyway, as I said in the question, I am not looking for a module, nor I am looking for such a grainlevel control over "numeric strings". Call it a challenge (if you like): are those patterns ok? Would you write them differently for the sake of {efficiency|compactness|speed|readability|anything}? Would you compact all af them in a unique, catchall regex? That was the question. Please, don't feel offended about that: pointers to modules that do the job are useful and I don't despise them. But they are not an answer to the question Ciao! The very nature of Perl to be like natural language--inconsistant and full of dwim and special cases--makes it impossible to know it all without simply memorizing the documentation (which is not complete or totally correct anyway).
In Section
Seekers of Perl Wisdom
|
|