Random Quest
Answered..
|
You would have to define each possible turn-in combination.
|
ah right ok Thanks
|
Not sure why you redacted your question, it might help someone in the future.
So he asked: How would you make a turn-in that could be 4 of any of the 10 items needed. |
Quote:
What? No. Code:
# list of 10 possible item ids |
There ya go, if you're a wizard you can do it that way.
See, it pays to leave the original question. There's always a different way to do things! haha |
Seeing the answer without knowing the question was bugging me. :D
There are always several ways to do something in Perl (using grep instead of the smart matching operator, for example). Something similar to the example provided would be less error prone, especially if you ever intend to change the items that are required. |
All times are GMT -4. The time now is 08:33 AM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.