Data-Util

 view release on metacpan or  search on metacpan

t/06_subroutine.t  view on Meta::CPAN

	use Data::Util qw(install_subroutine);

	sub baz{}

	package Callable;
	use overload
		'&{}' => 'codify',
	;
	sub new{
		my $class = shift;
		bless {@_} => $class;
	}
	sub codify{
		my $self = shift;
		$self->{code};
	}
}

is_deeply get_subname(\&foo), 'main::foo', 'get_code_info()';
is_deeply [get_code_info(\&foo)], [qw(main foo)];

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 0.953 second using v1.00-cache-2.02-grep-82fe00e-cpan-1925d2aa809 )