Here's a simple way to pick a random string:
use strict; my @hosts = ( "host1", "host2", "host3", "host4", ); my $pick = $hosts[rand @hosts]; print "host: $pick\n";
In reply to Re: Load Balancing
by scorpio17
in thread Load Balancing
by onegative
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |