RevBank::Global
Constants and utility functions
Synopsis
use RevBank::Global;
Description
This module unconditionally exports the following symbols into the calling namespace:
Constants
ACCEPT, ABORT, REJECT, NEXT
Return codes for plugins. See RevBank::Plugins.
Functions
say
Print with newline, in case your Perl version doesn't already have a say.
call_hooks($hook, @arguments)
See call_hooks in RevBank::Plugins.
parse_amount($amount)
Returns the amount given if it is well formed, undef if it was not. Dies if the given amount exceeds certain boundaries.
Commas are changed to periods so 3,50 and 3.50 both result in 3.5.
parse_user($username)
Returns the canonical username, or undef if the account does not exist.
See parse_user in RevBank::Accounts for the gory details.
Author
Juerd Waalboer #####@juerd.nl
License
Pick your favourite OSI license.