---
name: "POEx::Role::SessionInstantiation::Meta::POEState"
section: "3pm"
platform: "linux"
package: "libpoex-role-sessioninstantiation-perl"
version: "1.101040-1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/POEx::Role::SessionInstantiation::Meta::POEState"
---

# POEx::Role::SessionInstantiation::Meta::POEState(3pm)

A read-only object that provides POE context

## NAME

POEx::Role::SessionInstantiation::Meta::POEState - A read-only object that provides POE context

## VERSION

version 1.101040

## PUBLIC\_ATTRIBUTES

### sender

```
    is: ro, isa: Kernel|Session|DoesSessionInstantiation
```

The sender of the current event can be access from here. Semantically the same as `$_`\[+SENDER\].

### state

```
    is: ro, isa => Str
```

The state fired. This should match the current method name (unless of course within the \_default event handler, then it will be the event name that was  invoked but did not exist in your object instance.

### kernel

```
    is: ro, isa: Kernel
```

This is actually the POE::Kernel singleton provided as a little sugar instead of requiring use of `$poe_kernel`, etc. To make sure you are currently within a  POE context, check this attribute for definedness.

### \[qw/file line from/\]

```
    is: rw, isa: Maybe[Str]
```

These attributes provide tracing information from within POE. From is actually not used in POE::Session as far as I can tell, but it is available just in  case.

## PROTECTED\_METHODS

### clone

Clones the current POEState object and returns it

## AUTHOR

```
  Nicholas Perez <nperez@cpan.org>
```

## COPYRIGHT AND LICENSE

This software is copyright (c) 2010 by Nicholas Perez.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
