POE::Component::Tie

Perl extension that sends POE events on tie method invocations
Download

POE::Component::Tie Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Larry Shatzer, Jr.
  • Publisher web site:
  • http://search.cpan.org/~larrysh/

POE::Component::Tie Tags


POE::Component::Tie Description

Perl extension that sends POE events on tie method invocations POE::Component::Tie is a Perl module that allows you to tie a scalar, array, or hash, and then have the tie methods sent as events to a POE session. Since there is no way to know the name of the variable being tied, that information is not passed back to the POE event. You will need to make a POE session and handlers for each variable you want to tie with this package. It is also worth mentioning due to this, some events that may be found in both ARRAY and HASH may pass something different back. See the documentation to know what exactly to expect back.SYNOPSIS use POE; use POE::Component::Tie; my $session = POE::Session->create( inline_states => { _start => sub {}, STORE => \&handler, # place other handlers here you want for tie method events } ); my $scalar; tie($scalar, "POE::Component::Tie", $session, $poe_kernel); $scalar = "Test!"; $poe_kernel->run(); sub handler { print "Got STORE event"; } Requirements: · Perl


POE::Component::Tie Related Software