サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
Pixel 9
poe.perl.org
This program is a very simple IRC bot. It connects to a network, joins a channel, and responds to "rot13" requests. It uses POE and POE::Component::IRC, which are Perl modules available on the CPAN. #!/usr/bin/perl # This is a simple IRC bot that just rot13 encrypts public messages. # It responds to "rot13 <text to encrypt>". use warnings; use strict; use POE; use POE::Component::IRC; sub CHANNEL
This is a contrived example. It uses POE::Filter::Line to parse lines from a handle read by sysread(). #!/usr/bin/perl -w use strict; use POE::Filter::Line; my $filter = POE::Filter::Line->new(); open my $fh, "<", "/var/log/messages" or die $!; while (sysread($fh, my $buffer = '', 1024)) { my $lines = $filter->get([$buffer]); foreach (@$lines) { print "got: $_\n"; } } Notes: Blocking sysread() inp
Generally Speaking POE is a Perl framework for writing reactive programs. Cooperatively multitasked programs and networking programs are overlapping subsets of reactive programs. POE implements a single API and bridges from it to other event loops. A program using POE can run under any event loop that POE supports, with little or no modification. Whitepaper A whitepaper about POE is available in P
Evolution of a POE Server by Rocco Caputo and Socko the Puppet. Copyright 2002. All rights reserved. This tutorial is free text. It may be distributed (but not modified) under the same terms as POE. For the Impatient This tutorial presents the same TCP server at four different levels of abstraction. If you're good with Perl and already know the basics of POE, you should have no trouble figuring ou
POE's Cookbook is a collection of illustrative examples for doing things (wonderful and mundane) with POE. It was started in the spirit of the [Perl Cookbook]. This cookbook is meant to be comprehensive, but it can't be without your help. Please add suggestions to the end, or feel free to create your own examples. If you wrote a component you'd like to see here, add an example. Unless otherwise st
This is a simple web proxy. It uses HTTP::Request and HTTP::Response objects, which require it to load each item of content (pages, images, files) entirely into memory before passing it back to the client. As a result, it thwarts progressive rendering and streamed content. Use it with care. On the plus side, since pages are loaded entirely into memory, you can do interesting things with them. Othe
POE is a Perl framework for reactive systems, cooperative multitasking, and network applications. Read more about POE. POE is the most supported event loop for Perl. It supports [http://search.cpan.org/search?m=dist&
このページを最初にブックマークしてみませんか?
『POE: Perl Object Environment』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く