--- Coro/Coro.pm 2003/11/05 20:02:44 1.55 +++ Coro/Coro.pm 2003/11/30 22:49:25 1.57 @@ -40,7 +40,7 @@ use base Exporter; -$VERSION = 0.8; +$VERSION = "0.9"; @EXPORT = qw(async cede schedule terminate current); %EXPORT_TAGS = ( @@ -122,7 +122,7 @@ my @destroy; my $manager; $manager = new Coro sub { - while() { + while () { # by overwriting the state object with the manager we destroy it # while still being able to schedule this coroutine (in case it has # been readied multiple times. this is harmless since the manager @@ -159,9 +159,6 @@ print "@_\n"; } 1,2,3,4; -The coderef you submit MUST NOT be a closure that refers to variables -in an outer scope. This does NOT work. Pass arguments into it instead. - =cut sub async(&@) {