This constructor creates a listen socket (using the optional address arguments) and when a connection is ready to be accepted it triggers its object. The callback method is passed the accepted socket as its first argument.
'object' => <required object to trigger> 'method' => <method to call (default is 'accepted'). the accepted socket is passed as the first argument> 'port' => <port to listen on (default is 10000)> 'host' => <host/ip to listen on (default is IN_ANY)> 'listen' => <max number of pending accepts (default 5)>
To install Stem, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Stem
CPAN shell
perl -MCPAN -e shell install Stem
For more information on module installation, please visit the detailed CPAN module installation guide.