POE::Component::SubWrapper 0.08
Sponsored Links
POE::Component::SubWrapper 0.08 Ranking & Summary
File size:
0.005 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
799
Date added:
2007-08-16
Publisher:
Michael Stevens
POE::Component::SubWrapper 0.08 description
POE::Component::SubWrapper is an event based wrapper for subs.
SYNOPSIS
use POE::Component::SubWrapper;
POE::Component::SubWrapper->spawn(main);
$kernel->post(main, my_sub, [ $arg1, $arg2, $arg3 ], callback_state);
This is a module which provides an event based wrapper for subroutines.
SubWrapper components are not normal objects, but are instead spawned as separate sessions. This is done with with PoCo::SubWrappers spawn method, which takes one required and one optional argument. The first argument is the package name to wrap. This is required. The second argument is optional and contains an alias to give to the session created. If no alias is supplied, the package name is used as an alias.
Another way to create SubWrapper components is to use the poeize method, which is included in the default export list of the package. You can simply do:
poeize Data::Dumper;
and Data::Dumper will be wrapped into a session with the alias Data::Dumper.
When a SubWrapper component is created, it scans the package named for subroutines, and creates one state in the session created with the same name of the subroutine.
The states each accept 3 arguments:
- An arrayref to a list of arguments to give the subroutine.
- A state to callback with the results.
- A string, either SCALAR, or ARRAY, allowing you to decide which context the function handled by this state will be called in.
The states all call the function with the name matching the state, and give it the supplied arguments. They then postback the results to the named callback state. The results are contained in ARG0 and are either a scalar if the function was called in scalar context, or an arrayref of results if the function was called in list context.
SYNOPSIS
use POE::Component::SubWrapper;
POE::Component::SubWrapper->spawn(main);
$kernel->post(main, my_sub, [ $arg1, $arg2, $arg3 ], callback_state);
This is a module which provides an event based wrapper for subroutines.
SubWrapper components are not normal objects, but are instead spawned as separate sessions. This is done with with PoCo::SubWrappers spawn method, which takes one required and one optional argument. The first argument is the package name to wrap. This is required. The second argument is optional and contains an alias to give to the session created. If no alias is supplied, the package name is used as an alias.
Another way to create SubWrapper components is to use the poeize method, which is included in the default export list of the package. You can simply do:
poeize Data::Dumper;
and Data::Dumper will be wrapped into a session with the alias Data::Dumper.
When a SubWrapper component is created, it scans the package named for subroutines, and creates one state in the session created with the same name of the subroutine.
The states each accept 3 arguments:
- An arrayref to a list of arguments to give the subroutine.
- A state to callback with the results.
- A string, either SCALAR, or ARRAY, allowing you to decide which context the function handled by this state will be called in.
The states all call the function with the name matching the state, and give it the supplied arguments. They then postback the results to the named callback state. The results are contained in ARG0 and are either a scalar if the function was called in scalar context, or an arrayref of results if the function was called in list context.
POE::Component::SubWrapper 0.08 Screenshot
Advertisements
POE::Component::SubWrapper 0.08 Keywords
SubWrapper
POE
SubWrapper 0.08
state
wrapper
event
based
package
function
POE::Component::SubWrapper
POEComponentSubWrapper
POE::Component::SubWrapper 0.08
Libraries
Programming
Bookmark POE::Component::SubWrapper 0.08
POE::Component::SubWrapper 0.08 Copyright
WareSeeker periodically updates pricing and software information of POE::Component::SubWrapper 0.08 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of POE::Component::SubWrapper 0.08 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
state farm insurance
ohio state university
state of the union address
state farm
state of ohio
united states postal service
united states map
state of play
state of florida
secretary of state
event viewer
based business opportunities
wrappers for candy bars
state abbreviations
poems and quotes
state of texas
statements
home based business
Related Software
POE::Component::OSCAR is a POE component for the Net::OSCAR module. Free Download
POE::Component::Basement provides Class::Std and base POE component functionality. Free Download
POE::Component::ControlPort is a Perl module with network control port for POE applications. Free Download
POE::Component::Player::Xmms is a wrapper for the Xmms player. Free Download
POE::Component::Server::HTTP is a foundation of a POE HTTP Daemon. Free Download
POE::Component::Generic is a POE component that provides non-blocking access to a blocking object. Free Download
POE::Component::YahooMessenger is a POE component for Yahoo! Messenger. Free Download
POE::Component::Server::IRC is a fully event-driven networkable IRC server daemon module. Free Download
Latest Software
Popular Software
Favourite Software