http://qs321.pair.com?node_id=651219


in reply to Load Balancing

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";