my @arr = ('A'..'Z'); my $combo = join '', @arr[rand @arr, rand @arr]; print $combo . "\n";
see Slices
In reply to Re: oneliner for selecting multiple values from array
by ccn
in thread oneliner for selecting multiple values from array
by ev00rg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |