in reply to Re^4: My first cpan module - App::ForKids::LogicalPuzzleGenerator
in thread My first cpan module - App::ForKids::LogicalPuzzleGenerator
if( /\S+,\S+/ ) # if some cell has a comma, fork (sort of) { push @stack, $` . $_ . $' for split /,/, $&; }
Please correct me, but this looks like branching with pure Perl means.
Instead of recursive calls, you are pushing different alternatives on a stack.
Would be more "fun" if the branching was implemented with regexes... ;-)
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: My first cpan module - App::ForKids::LogicalPuzzleGenerator
by tybalt89 (Monsignor) on Feb 27, 2018 at 00:51 UTC | |
by LanX (Saint) on Feb 27, 2018 at 09:33 UTC | |
by tybalt89 (Monsignor) on Feb 27, 2018 at 10:24 UTC |