Created
November 16, 2011 23:24
-
-
Save leedo/1371849 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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