1Sub::Prototype(3)     User Contributed Perl Documentation    Sub::Prototype(3)
2
3
4

NAME

6       Sub::Prototype - Set a sub's prototype
7

VERSION

9       version 0.03
10

SYNOPSIS

12           use Sub::Prototype;
13
14           BEGIN {
15               my $code = sub { ... };
16               set_prototype($code, '&@');
17               *main::my_func = $code;
18           }
19
20           my_func { ... } @list;
21

FUNCTIONS

23       This module only has one function, which is also exported by default:
24
25   set_prototype(\&coderef, $prototype)
26           set_prototype(\&some_function, '$$');
27
28       Sets the prototype for "coderef" to $prototype.
29

THANKS

31       Shawn M Moore for the idea and tests.
32

SUPPORT

34       Bugs may be submitted through the RT bug tracker
35       <https://rt.cpan.org/Public/Dist/Display.html?Name=Sub-Prototype> (or
36       bug-Sub-Prototype@rt.cpan.org <mailto:bug-Sub-Prototype@rt.cpan.org>).
37

AUTHOR

39       Florian Ragwitz <rafl@debian.org>
40

CONTRIBUTOR

42       Karen Etheridge <ether@cpan.org>
43
45       This software is copyright (c) 2008 by Florian Ragwitz.
46
47       This is free software; you can redistribute it and/or modify it under
48       the same terms as the Perl 5 programming language system itself.
49
50
51
52perl v5.32.1                      2021-01-27                 Sub::Prototype(3)
Impressum