Data::Perl::Role::Code
Wrapping class for Perl coderefs.
- Provided by: libdata-perl-perl (Version: 0.002009-1)
- Report a bug
Wrapping class for Perl coderefs.
version 0.002009
use Data::Perl qw/code/;
my $code = code(sub { 'Foo'} );
$code->execute(); # returns 'Foo';
This class provides a wrapper and methods for interacting with Perl coderefs.
Matthew Phillips <mattp@cpan.org>
This software is copyright (c) 2014 by Matthew Phillips <mattp@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.