POE::Resource::Controls -- Switches and Knobs for POE Internals
my $new_value = $k->_data_magic_set('kernel.pie' => 'tasty'); my $value = $k->_data_magic_get('kernel.pie'); my $ctls = $k->_data_magic_get(); $k->_data_magic_lock('kernel.pie'); $k->_data_magic_unlock('kernel.pie');
my $new_value = $k->_data_magic_set('kernel.pie' => 'tasty'); Set a control entry. Returns new value of control entry. If entry value did not change, this entry is locked from writing.
my $value = $k->_data_magic_get('kernel.pie');
Get the value of a control entry. If no entry name is provided, returns a hash reference containing a copy of all control entries.
$k->_data_magic_lock('kernel.pie');
Lock a control entry from write. This call can only be made from within a POE namespace.
$k->_data_magic_unlock('kernel.pie');
Unlock a control entry. This allows the entry to be written to again. This call can only be made from within a POE namespace. =head1 SEE ALSO
See POE::Kernel and POE::API::Ctl.
Original Author: Matt Cashner (sungo@pobox.com)
Please see POE for more information about authors and contributors.