Skip to content

Instantly share code, notes, and snippets.

@leedo
Created November 16, 2011 23:24
Show Gist options
  • Save leedo/1371849 to your computer and use it in GitHub Desktop.
Save leedo/1371849 to your computer and use it in GitHub Desktop.
use Alice;
use AnyEvent;
my @users = (
{ user => "user1",
port => 9000,
path => "/home/user1/.alice"
},
{ user => "user2",
port => 9001,
path => "/home/user2/.alice"
},
{ user => "user3",
port => 9003,
path => "/home/user3/.alice"
},
);
print "spawning some alice instances\n";
my @alices = map { Alice->new(%$_) } @users;
AE::cv->recv;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment