in reply to Vote decider
...so it probably doesn't work...You're right!
This should work.#!/usr/bin/perl -w use strict; my @parties = qw(Liberal Conservative NDP Green); my $party = rand(4); print $parties[$party];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Vote decider
by diotalevi (Canon) on Jun 28, 2004 at 19:07 UTC | |
by mawe (Hermit) on Jun 29, 2004 at 05:19 UTC |