GO-V.ORG
As seen in

Perl Object Environment

The Perl Object Environment (POE) is a library of Perl modules written in the Perl programming language by Rocco Caputo et al.[src] From CPAN: :"POE originally was developed as the core of a persistent object server and runtime environment.[src] It has evolved into a general purpose multitasking and networking framework, encompassing and providing a consistent interface to other event loops such as Event and the Tk and Gtk toolkits."[src]

The Perl Object Environment (POE) is a library of Perl modules written in the Perl programming language by Rocco Caputo et al.[src] From CPAN: "POE originally was developed as the core of a persistent object server and runtime environment.[src] It has evolved into a general purpose multitasking and networking framework, encompassing and providing a consistent interface to other event loops such as Event and the Tk and Gtk toolkits." ===The event layer=== The informal architecture consists of a set of layers with a kernel on the bottom.[src] This tiny kernel represents the events layer which operates as the main loop of each running POE instance.[src] The first call is to the "event dispatcher" - POE::Kernel.[src] The POE::Kernel namespace contains a suite of functions which are plugged into the kernel itself.[src] These loop abstractions are designed after POE's standardized event loop bridge interface - POE::Loop.[src] These can be mixed and matched as needed to provide runtime services and a lean facility for interprocess communication.[src] The basic functions are POE::Loop::Event, POE::Loop::Poll and POE::Loop::Select.[src] Also available are POE::Loop::Tk and POE::Loop::Gtk which offer hooks into other loop bridges in the external environment.[src] If that isn't enough, the POE::Loop kernel abstraction provides reusable signal callbacks, time or alarm callbacks, and filehandle activity callbacks as well as administrative functions such as initializing, executing, and finalizing event loops.[src] There is also a higher level packaging framework - POE::Macro and a debugging utility for testing them called POE::Preprocessor.[src] This framework has yielded POE::Macro::UseBytes.[src] NOTE: As the Perl tradition mandates, POE is also a moving target.[src] Always check CPAN to see what new goodies the community has placed in the archive.[src] (...and remember Perl's Motto: "There's more than one way to do it" per Larry) The Running Kernel operates through primordial finite-state machines constructed from another set of abstractions ruled by the POE::Session architecture.[src] A POE::Session is almost trivially defined as a map of events to the functions, class methods, and/or object methods that handle them.[src] POE::Session objects also contain a storage space shared by all its event handlers, called a heap.[src] Any way you slice them the states are solidly identified and clearly defined.[src] A more featureful event handler is a POE::Session subclass called POE::NFA - an event-driven Nondeterministic finite automaton (a smarter finite state machine).[src] This event handler moves from one strictly defined state to another as events, polls, user selections, or other external events require.[src] This state machine acts to encapsulate a wide range of generic event driven threads allowing much tighter tracking along the execution path than the relatively informal POE::Session.[src] ===The I/O layer=== The Kernel's next requirement is for Input-Output handlers that exist in a single I/O layer called Wheels.[src] Wheels initiate actions, handle their resulting low-level events, and produce higher-level events for the sessions that use them.[src] Wheels, like Sessions and Loops are built from a uniform set of abstractions - POE::Wheel - that sit on top of the Kernel.[src] There are seven highly specialized and well-defined Wheels in POE's base distribution: POE::Wheel::Run - Creates and interacts with child processes using pipe(), fork(), and sometimes exec().[src] Interaction is done through the child's standard input and output.[src] POE::Wheel::SocketFactory - A way to create client and server sockets without blocking to wait for their establishment.[src] POE::Wheel::Curses - A handler for non-blocking input from the Curses text interface library.[src] CPAN components such as Curses::UI::POE and Term::Visual build upon it.[src] POE::Wheel::FollowTail - Tracks an ever-growing file, such as a log or a collaborative document, by keeping a handle on its tail.[src] POE::Wheel::ListenAccept - A subset of POE::Wheel::SocketFactory used for listening on existing server sockets and accepting connections from remote clients.[src] POE::Wheel::ReadLine - A non-blocking, event driven analogue to Term::ReadLine.[src] POE::Wheel::ReadWrite - A high-performance NBIO file handler for POE that uses POE's drivers and filters to perform buffered read and write on filehandles which draws on the next layer - POE's own little file system.[src] ===The file layers=== Drivers do the actual work of reading and writing filehandles.[src] They are built according to the less abstract definitions contained in the POE::Driver module.[src] The main driver implemented at the time of this writing is POE::Driver::SysRW - a universal filehandle reader/writer designed especially for POE::Wheel::ReadWrite.[src] The next layer, built from POE::Filter and probably the focus of most Perl Obfuscation Efficianados (see POE #POE Humor below), is the POE::Filter set: "Filters translate between raw streams and cooked chunks of tasty dada." per `sungo' POE::Filter::Block - parses input as fixed-length blocks.[src] On the output side, it merely passes data through unscathed.[src] POE::Filter::HTTPD - parses input as HTTP requests and translates them into HTTP::Request objects.[src] On the output side, it takes HTTP::Response objects and turns them into something suitable to be sent to a web client/user-agent.[src] POE::Filter::Line - parses incoming streams into lines and turns outgoing lines into streams.[src] It used to be very basic, but recent improvements have added interesting features like newline autodetection.[src] POE::Filter::Reference - used to send Perl structures between POE programs or between POE and other Perl programs.[src] On the input side, frozen data (via Storable, FreezeThaw, YAML, or some other serialization mechanism) is thawed into Perl data structures.[src] On output, references given to the filter are frozen.[src] Data may also be compressed on request if Compress::Zlib is installed.[src] POE::Filter::Stream - does nothing.[src] It merely passes data through without any change.[src] see POE at CPAN for the complete list ==Components== Several larger packages have been written in POE according to the POE::Component documentation.[src] These are event-driven modules, many of which act as little daemons that provide services to larger packages to which they belong.[src] Some of them facilitate higher-level communications between modules, especially stand-alone applications that need to remain independent from the main distribution of Perl.[src] In general, POE Components are ready-made high level procedures that perform specific large tasks.[src] A few examples: Component::Server::TCP - a special-purpose TCP servlet Component::Client::TCP - a POE-aware TCP client POE::Component::IRC - a nearly full-featured IRC client.[src] POE::Component::Server::IRC - an RFC 2810 to RFC 2813 compliant IRC server (under development) POE::Component::UserBase - a user authentication and data persistence servlet.[src] "POE Components tend to be highly reusable libraries that handle tedious tasks, freeing programmers to focus on more interesting things.[src] This should be true for any library, though." ==Humor== The Acme::POE::Knee module on the CPAN.[src] A number of silly acronym expansions at the end of What POE Is.[src] ==See also== event-driven programming Twisted, a comparable framework for the Python programming language ==External links== POE Home Page (a Wiki site)[src]

62 sentences · 62 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Perl Object Environment." encyclopegia.org, 2026, https://encyclopegia.org/wiki/perl-object-environment. Accessed 05 December 2026.

Chicago

"Perl Object Environment." encyclopegia.org. Accessed December 5, 2026. https://encyclopegia.org/wiki/perl-object-environment.

APA

encyclopegia.org. (2026). Perl Object Environment. Retrieved December 5, 2026, from https://encyclopegia.org/wiki/perl-object-environment

Accessed December 5, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Digital Object Identifier

article · references available

Electronic Object Identifier

article · references available

trans-Neptunian object

stub · references available

integrated development environment

stub · references available

Messier object

stub · references available

Perl

stub · references available

Curdin Perl

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1334540342 · 0.5 · snapshot enwiki-001334540342

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.