Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

moosex::poe::sweetargs(3pm) [debian man page]

MooseX::POE::SweetArgs(3pm)				User Contributed Perl Documentation			       MooseX::POE::SweetArgs(3pm)

NAME
MooseX::POE::SweetArgs - sugar around MooseX::POE event arguments VERSION
version 0.215 SYNOPSIS
package Thing; use MooseX::POE::SweetArgs; # declare events like usual event on_success => sub { # unpack args like a Perl sub, not a POE event my ($self, $foo, $bar) = @_; ... POE::Kernel->yield('foo'); ... }; DESCRIPTION
Normally, when using MooseX::POE, subs declared as events need to use POE macros for unpacking @_, e.g.: my ($self, $foo, $bar) = @_[OBJECT, ARG0..$#_]; Using MooseX::POE::SweetArgs as a metaclass lets you avoid this, and just use @_ as normal: my ($self, $foo, $bar) = @_; Since the POE kernel is a singleton, you can access it using class methods, as shown in the synopsis. In all other respects, this behaves exactly like MooseX::POE AUTHORS
o Chris Prather <chris@prather.org> o Ash Berlin <ash@cpan.org> o Chris Williams <chris@bingosnet.co.uk> o Yuval (nothingmuch) Kogman o Torsten Raudssus <torsten@raudssus.de> <http://www.raudssus.de/> COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Chris Prather, Ash Berlin, Chris Williams, Yuval Kogman, Torsten Raudssus. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-04-25 MooseX::POE::SweetArgs(3pm)

Check Out this Related Man Page

MooseX::POE::Aliased(3pm)				User Contributed Perl Documentation				 MooseX::POE::Aliased(3pm)

NAME
MooseX::POE::Aliased - A sane alias attribute for your MooseX::POE objects. VERSION
version 0.215 SYNOPSIS
use MooseX::POE; with qw(MooseX::POE::Aliased); my $obj = Foo->new( alias => "blah" ); $obj->alias("arf"); # previous one is removed, new one is set $obj->alias(undef); # no alias set DESCRIPTION
This role provides an "alias" attribute for your MooseX::POE objects. The attribute can be set, causing the current alias to be cleared and the new value to be set. METHODS
alias The alias to set for the session. Defaults to the "overload::StrVal" of the object. If the value is set at runtime the alias will be updated in the POE::Kernel. A value of "undef" inhibits aliasing. ATTRIBUTES
AUTHORS
o Chris Prather <chris@prather.org> o Ash Berlin <ash@cpan.org> o Chris Williams <chris@bingosnet.co.uk> o Yuval (nothingmuch) Kogman o Torsten Raudssus <torsten@raudssus.de> <http://www.raudssus.de/> COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Chris Prather, Ash Berlin, Chris Williams, Yuval Kogman, Torsten Raudssus. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-04-25 MooseX::POE::Aliased(3pm)
Man Page

5 More Discussions You Might Find Interesting

1. AIX

PPE/POE problems on AIX 5.2 on p690 systems

We have PPE/POE problems on a 32 PE p690 system. After upgrading to the latest AIX 5.2 (ML 05) POE/PPE environment on a p690, we've noticed that mpi jobs could not start. I've trace the problem in the communication of poe client routines and the pmdv4 (/etc/pmdv4) partition manager on our... (0 Replies)
Discussion started by: miket
0 Replies

2. UNIX for Dummies Questions & Answers

Accumulated value

Hi Everyone I am very new to Unix programming and I was wondering how I could add all the numbers and get a accumulated value. 1588820 user10 2463140 user11 2464096 user12 Ash (2 Replies)
Discussion started by: ashika
2 Replies

3. Shell Programming and Scripting

Running unix commands through perl

Hi all, In the directory '/temp/chris' the following files exist: chris.tar, chris.txt What i am trying to do is to assign the 'chris.tar' filename in an argument through perl, in order to do that i use the system command: $file=system("ls /temp/chris/*.tmp), but in the '$file' the exit... (2 Replies)
Discussion started by: chriss_58
2 Replies

4. UNIX for Dummies Questions & Answers

If condition issue

Hello, I am using the following code #!/bin/sh chris='rerun' chris2=$1 echo "chris=$chris" echo "chris2=$chris2" if then echo "RERUN" else echo "NOT RERUN" fi (6 Replies)
Discussion started by: chriss_58
6 Replies

5. Ubuntu

Bash to Ash, errors and adjustments

I wrote Bash script and now I want to convert it to Ash. One headache is this function: do_adduser() { setaddprompt _arr_add=("Add manually" "Add via TXT" "return to main menu" "exit program") select add_action in "${_arr_add}" do case "$REPLY" in 1)... (7 Replies)
Discussion started by: fzivkovi
7 Replies