McBain
view release on metacpan or search on metacpan
lib/McBain.pm view on Meta::CPAN
Mostly used internally and in L<McBain runner|"MCBAIN RUNNERS"> modules.
=cut
our %INFO;
sub import {
my $target = caller;
return if $target eq 'main';
my $me = shift;
strict->import;
warnings->import(FATAL => 'all');
return if $INFO{$target};
# find the root of this API (if it's not this class)
my $root = _find_root($target);
# create the routes hash for $root
$INFO{$root} ||= {};
# were there any options passed?
( run in 0.951 second using v1.01-cache-2.11-cpan-299005ec8e3 )