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";
}
Product's homepage
Requirements:
· Perl