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.
--
[ e d @ h a l l e y . c c ]
In reply to Re^4: How implement AMB in perl?
by halley
in thread How implement AMB in perl?
by xiaoyafeng
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |