Chest::Global - use it as a global chest.
use Chest::Global; Chest::Global->insert('Function No. 1',sub{sub{print "hello world!\n"}}); Chest::Global->take('Function No. 1');
Creates a single chest to insert and take methods from.
Initialize the global object and defines the method names. Default is the same as in Chest. You can change them with a hash reference with original method names as keys and new names as values.
Example:
; use Chest::Global { take => 'execute', insert => 'place' }
Chest
Sebastian Knapp
Copyright (C) 2006 by Sebastian Knapp
This library is free software; you can redistribute it and/or modify it under the same terms as perl itself.
To install Chest, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Chest
CPAN shell
perl -MCPAN -e shell install Chest
For more information on module installation, please visit the detailed CPAN module installation guide.