Sebastian Knapp > Chest-0.082 > Chest::Global

Download:
chest/Chest-0.082.tar.gz

Annotate this POD

View/Report Bugs
Source  

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 ^

Chest

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.

syntax highlighting: