package Fun; use strict; use warnings; # ABSTRACT: simple function signatures use Devel::CallParser; use XSLoader; XSLoader::load( __PACKAGE__, exists $Fun::{VERSION} ? ${ $Fun::{VERSION} } : (), ); use Exporter 'import'; our @EXPORT = our @EXPORT_OK = ('fun'); =head1 SYNOPSIS =head1 DESCRIPTION =cut =head1 EXPORTS =head2 fun =cut sub fun { my ($name, $code) = @_; my $caller = caller; no strict 'refs'; *{ $caller . '::' . $name } = $code; } =head1 BUGS No known bugs. Please report any bugs through RT: email C, or browse to L. =head1 SEE ALSO L, etc... =head1 SUPPORT You can find this documentation for this module with the perldoc command. perldoc Fun You can also look for information at: =over 4 =item * AnnoCPAN: Annotated CPAN documentation L =item * CPAN Ratings L =item * RT: CPAN's request tracker L =item * Search CPAN L =back =cut 1;