NAME
Chest::Global - use it as a global chest.
SYNOPSIS
use Chest::Global;
Chest::Global->insert('Function No. 1',sub{sub{print "hello world!\n"}});
Chest::Global->take('Function No. 1');
DESCRIPTION
Creates a single chest to insert and take methods from.
USAGE
import
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' }
SEE ALSO
AUTHOR
Sebastian Knapp
COPYRIGHT AND LICENSE
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.