I like your solution because it's doing the work using Perl code. I do not think that is is a great idea to use several different modules to solve such a simple problem, especially for a beginner probably learning the art of programming. I think it is better for a beginner to actually learn coding such simple algorithms before using ready-made solutions from modules. (I suspect that some monks will probably disagree with me and say that you shouldn't reinvent the wheel, but I insist that the most essential quality of a programmer is to be able to understand a problem and to implement things with no ready-made crutches.)
I have seen too many self-styled Web developers just using intensively Laravel or Symphony, but more or less unable to write five lines of consistent PHP code. IMHO, it is important to learn doing the things by yourself before you use some extra libraries doing the hard work for you.
In reply to Re^2: Sum group of numbers and display each number is on its own line -- plain way
by Laurent_R
in thread Dice roll chances
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |