Think about Loose Coupling | |
PerlMonks |
Re^2: Elegant examples to parse parenthesised strings (Parse::Balanced)by back-n-black (Initiate) |
on May 26, 2010 at 14:36 UTC ( [id://841735]=note: print w/replies, xml ) | Need Help?? |
Thanks to all for your responses As it turns out I had forgotten a case which all methods are having problems solving. For example:
Krambambuli - Nice little one liner cdarke - I do not have access to feature in this environment and in a very quick look at cpan I could not find what module had feature in it. Sorry, I did not pursue this example. Marshell - I liked this, good small brute force example repellent - This is really what I was looking for but like the others it is having problems with ( is-mother.to code intersects afunc(val1,val2,val3,val4).
Since it seems that all are having issues with this one scenario I am thinking I will have to combine Parse::Balanced with some brute force operations. One idea I have is to just
Unless someone can come up with a way to handle the line in it's entirety.
In Section
Seekers of Perl Wisdom
|
|