japhy has asked for the wisdom of the Perl Monks concerning the following question:
Now, there's a lot that goes into generating the crossword puzzle, and what I really need is the ability to STOP a function in its tracks, and then resume it. This isn't possible as far as I know, so I'm kind of at a loss for how I could do this.my $puzzler = Crossword->new(...); while (my $p = $puzzler->generate) { # do stuff with one possible puzzle }
Has anyone else been in this situation? How have you solved it?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: complex iterator needed (goto)
by tye (Sage) on Feb 01, 2004 at 02:28 UTC | |
by Tommy (Chaplain) on Feb 01, 2004 at 02:32 UTC | |
by Anonymous Monk on Feb 01, 2004 at 04:01 UTC | |
|
Re: complex iterator needed
by Zaxo (Archbishop) on Feb 01, 2004 at 02:18 UTC | |
|
Re: complex iterator needed
by neuroball (Pilgrim) on Feb 01, 2004 at 01:50 UTC | |
by liz (Monsignor) on Feb 01, 2004 at 23:02 UTC | |
|
Re: complex iterator needed
by Tommy (Chaplain) on Feb 01, 2004 at 02:09 UTC | |
|
Re: complex iterator needed
by oakbox (Chaplain) on Feb 01, 2004 at 01:52 UTC | |
|
Re: complex iterator needed
by BrowserUk (Patriarch) on Feb 01, 2004 at 11:41 UTC | |
by japhy (Canon) on Feb 01, 2004 at 14:04 UTC | |
by BrowserUk (Patriarch) on Feb 01, 2004 at 14:10 UTC | |
|
Re: complex iterator needed
by tilly (Archbishop) on Feb 01, 2004 at 10:51 UTC | |
|
Re: complex iterator needed
by artist (Parson) on Feb 01, 2004 at 01:35 UTC |