- バックアップ一覧
- 現在との差分 を表示
- ソース を表示
- バックアップ を表示
- Perl/イベント駆動/Coro へ行く。
- 1 (2012-03-06 (火) 19:12:17)
- 追加された行はこの色です。
- 削除された行はこの色です。
* Coro [#y5f00058] use Coro; use LWP::UserAgent; async { print "Hello, world\n"; }; my $ua = LWP::UserAgent->new; my $res = $ua->get('http://www.goo.ne.jp'); print $res->title, "\n"; cede; goo called use Coro; use LWP::UserAgent; async { print "Hello, world\n"; }; cede; my $ua = LWP::UserAgent->new; my $res = $ua->get('http://www.goo.ne.jp'); print $res->title, "\n"; called goo ** 参考 [#id1ce8c0] http://search.cpan.org/perldoc?Coro