|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re^2: Sub ref from string without evalby Rhandom (Curate) |
| on Apr 03, 2012 at 13:38 UTC ( #963248=note: print w/ replies, xml ) | Need Help?? |
|
Which is generalized even better as:
my @a=qw(random brilliant braindead); print $a[rand(@a)];
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||