ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/eg/cont
(Generate patch)

Comparing Coro/eg/cont (file contents):
Revision 1.2 by root, Thu Jul 19 02:45:09 2001 UTC vs.
Revision 1.3 by root, Thu Jul 19 04:13:22 2001 UTC

2 2
3use Coro; 3use Coro;
4use Coro::Cont; 4use Coro::Cont;
5 5
6sub mul23 : Cont { 6sub mul23 : Cont {
7 result shift*2; 7 result 2*shift;
8 result shift*3; 8 result 3*shift;
9} 9}
10 10
11my %hash = (1,1,2,2,3,3); 11my %hash = (1,10,2,20,3,30);
12 12
13%hash = map &$cont, %hash; 13%hash = map mul23($_), %hash;
14 14
15print join(",", %hash), "\n"; 15print join(",", %hash), "\n";
16 16

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines