1Data::Perl::Code(3) User Contributed Perl Documentation Data::Perl::Code(3)
2
3
4
6 Data::Perl::Code - Wrapping class for Perl coderefs.
7
9 version 0.002011
10
12 use Data::Perl qw/code/;
13
14 my $code = code(sub { 'Foo'} );
15
16 $code->execute(); # returns 'Foo';
17
19 This class is a simple consumer of the Data::Perl::Role::Code role,
20 which provides all functionality. You probably want to look there
21 instead.
22
24 Matthew Phillips <mattp@cpan.org>
25
27 This software is copyright (c) 2020 by Matthew Phillips
28 <mattp@cpan.org>.
29
30 This is free software; you can redistribute it and/or modify it under
31 the same terms as the Perl 5 programming language system itself.
32
33
34
35perl v5.36.0 2023-01-20 Data::Perl::Code(3)