![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: Idiom to return 0 or random number of array elementsby Anonymous Monk |
on Dec 07, 2012 at 05:47 UTC ( #1007689=note: print w/replies, xml ) | Need Help?? |
Are you confusing the element at index 0 with 0 elements- e.g. the empty list? I want to the empty list with equal probability, and my solution does that. I'm just looking for a more succinct way to express it.
In Section
Seekers of Perl Wisdom
|
|