There's more than one way to do things | |
PerlMonks |
Re^4: Performance Trap - Opening/Closing Files Inside a Loopby Rhandom (Curate) |
on Dec 10, 2004 at 16:23 UTC ( [id://413895]=note: print w/replies, xml ) | Need Help?? |
If that is the case - combine the two methods.
my @a=qw(random brilliant braindead); print $a[rand(@a)];
In Section
Seekers of Perl Wisdom
|
|