Psh::Joblist - A data structure suitable for handling job lists like bash's
use Psh::Joblist; $job = Psh::Joblist::create_job($pid,$displayed_command); Psh::Joblist::delete_job($pid); $job = Psh::Joblist::get_job($pid); $flag = Psh::Joblist::job_exists($pid); $index = Psh::Joblist::get_job_number($pid); $job = Psh::Joblist::find_job(); $job = Psh::Joblist::find_job($index); Psh::Joblist::enumerate(); while( $job= Psh::Joblist::each()) { ... }
Read the source ;-)
Markus Peter (warp@spin.de)
To install Psh, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Psh
CPAN shell
perl -MCPAN -e shell install Psh
For more information on module installation, please visit the detailed CPAN module installation guide.