There's more than one way to do things | |
PerlMonks |
Re: Number from given digits puzzleby pKai (Priest) |
on Mar 30, 2007 at 21:06 UTC ( [id://607586]=note: print w/replies, xml ) | Need Help?? |
No idea what the desired output is (No ruby here).
Making 1 change to the perl code, gives me 3 lines of output: While the 1st and the 3rd line are junk the 2nd is at least one (the?) solution. I got there by substituting the code construction (sub {...}) in the recursive poss2 call by a mere $f, reasoning that what is constructed as just looks like a wrapper to the input sub. Does that help in any way?
Hoping to learn more, when you resolve the case...
In Section
Seekers of Perl Wisdom
|
|