Avoid writing literals like 4 into your source code and use the length of the array as an argument for itself.
print $parties[ rand @parties ];Or.
my $party_ix = rand @parties; print $parties[ $party_ix ];
In reply to Re^2: Vote decider
by diotalevi
in thread Vote decider
by Trag
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |