So, the idiom is:
$random_item = $array[rand @array];
Just cut-n-paste that!
-- Randal L. Schwartz, Perl hacker
In reply to RE: RE: RE: (Ovid) Re: General quesion
by merlyn
in thread General quesion
by Cheburashka
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |