NAME
Sub::Spec::URI::pm - 'pm' scheme handler for Sub::Spec::URI
VERSION
version 0.08
SYNOPSIS
# specify module
pm:Foo::Bar
# specify module & sub name
pm:Foo::Bar/func
# specify module, sub, and arguments
pm:Foo::Bar/func?arg1=1&arg2=2
DESCRIPTION
This handler lets us refer to local modules/subroutines. Modules will be loaded using Perl's require(). Spec will be retrieved from %SPEC package variables.
call() uses Sub::Spec::Wrapper to wrap subroutine to trap exceptions. This module assumes that specs don't change, so the resulting wrapped subroutines are cached are cached with keys refaddr($sub)|refaddr($spec).
AUTHOR
Steven Haryanto <stevenharyanto@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Steven Haryanto.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.