good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^4: How implement AMB in perl?by halley (Prior) |
on Apr 30, 2007 at 12:52 UTC ( [id://612761]=note: print w/replies, xml ) | Need Help?? |
I tried hard to use a regex (??{}) solution for my Pentominos Solving Quine, but in a recursion scenario, there are some issues with re-entrancy which can cause (at least some versions of) perl's interpreter to crash.
If you don't have to recurse, then by all means, any backtracking problem you can implement in the regex engine is fiendishly clever. Of course, "clever code" is for fun, not generally for maintainable code. --
In Section
Seekers of Perl Wisdom
|
|