# create a subthread for each tree executing the above recursiveFringe # in such a way that the output from print above can be read in # while(<...>) in the main thread. # once a difference occurs return FALSE and terminate threads
That looks more like a fork-based approach than a thread based.
See mine for a recursion and threads approach.
I'd love to see a Coro solution here.
In reply to Re^2: Challenge: Perl 5: lazy sameFringe()?
by BrowserUk
in thread Challenge: Perl 5: lazy sameFringe()?
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |