Reference

POE::Resource::Controls(3pm)

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');

_data_magic_set

    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.
_data_magic_get

    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.
_data_magic_lock

    $k->_data_magic_lock('kernel.pie');

Lock a control entry from write. This call can only be made from within a POE namespace.
_data_magic_unlock

    $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. See POE::Kernel and POE::API::Ctl. Original Author: Matt Cashner ([email protected]) Please see POE for more information about authors and contributors.

History