Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: Getting combinations from a number's digitsby Eimi Metamorphoumai (Deacon) |
on Jul 10, 2006 at 16:05 UTC ( [id://560175]=note: print w/replies, xml ) | Need Help?? |
If you have access to change the database, I wonder whether it would be better to store all the numbers sorted (either in the main table, or in a separate table), and then look them up that way. So if the user enters "312", you'd check for "123". Then you're only doing one lookup instead of 6.
In Section
Seekers of Perl Wisdom
|
|