Revision: | 1.5 |
Committed: | Sun Nov 5 02:18:06 2006 UTC (17 years, 10 months ago) by root |
Branch: | MAIN |
CVS Tags: | rel-2_5, rel-3_41, rel-3_55, rel-3_51, rel-3_4, rel-3_1, rel-3_5, rel-3_3, rel-3_2, rel-3_0, rel-3_01, rel-3_11, stack_sharing, rel-3_501 |
Changes since 1.4: | +1 -15 lines |
Log Message: | *** empty log message *** |
# | Content |
---|---|
1 | #!/usr/bin/perl |
2 | |
3 | use Coro; |
4 | use Coro::Event; |
5 | use Coro::LWP; # should be use'd as early as possible |
6 | use LWP::Simple; |
7 | |
8 | $SIG{PIPE} = 'IGNORE'; |
9 | |
10 | async { |
11 | print "hi2\n"; |
12 | get "http://www.google.de/"; |
13 | print "ho2\n"; |
14 | }; |
15 | |
16 | async { |
17 | print "hi\n"; |
18 | get "http://www.yahoo.com/"; |
19 | print "ho\n"; |
20 | |
21 | }; |
22 | |
23 | loop; |
24 |