---
name: "POE::Resource::Controls"
section: "3pm"
platform: "linux"
package: "libpoe-perl"
version: "2:0.3502-1"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/POE::Resource::Controls"
---

# 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 (sungo@pobox.com) Please see POE for more information about authors and contributors.
