1MooseX::POE::Aliased(3)User Contributed Perl DocumentatioMnooseX::POE::Aliased(3)
2
3
4
6 MooseX::POE::Aliased - A sane "alias" attribute for your MooseX::POE
7 objects.
8
10 use MooseX::POE;
11
12 with qw(MooseX::POE::Aliased);
13
14 my $obj = Foo->new( alias => "blah" );
15
16 $obj->alias("arf"); # previous one is removed, new one is set
17
18 $obj->alias(undef); # no alias set
19
21 This role provides an "alias" attribute for your MooseX::POE objects.
22
23 The attribute can be set, causing the current alias to be cleared and
24 the new value to be set.
25
27 alias
28 The alias to set for the session.
29
30 Defaults to the "overload::StrVal" of the object.
31
32 If the value is set at runtime the alias will be updated in the
33 POE::Kernel.
34
35 A value of "undef" inhibits aliasing.
36
37
38
39perl v5.12.0 2009-04-03 MooseX::POE::Aliased(3)