in reply to Boolean algebra
I'd attempt this, but your specification is inconsistent, and as I was looking at it, I stopped working on it until you clarify. Specifically:
This specification cannot be used with your sample data because you have the items delivered in different orders in the subexpressions: (abdc) vs (adc-b). So are you saying:
- The order of variables in the output string had to be the same as the input string.
- that we're permitted to select a subexpression at random with which to comply, or
- that your sample data would never be the actual data, or
- that this rule can be tossed out?
In Section
Seekers of Perl Wisdom