Subject: | make rand_enum() more DWIM? |
More than once I've written:
my $value = rand_enum([qw/ a b c d e f /]);
Forgetting the
set =>
How about making rand_enum() more DWIM'ish? If there's a single argument and it's an arrayref,
then take that as the set.
Cheers,
Neil