Sub::Prototype(3pm)

Sub::Prototype3pm

Set a sub's prototype

Usage

    use Sub::Prototype;
    BEGIN {
        my $code = sub { ... };
        set_prototype($code, '&@');
        *main::my_func = $code;
    }
    my_func { ... } @list;

Version

version 0.03

Functions

This module only has one function, which is also exported by default:

set_prototype(\&coderef, $prototype)

    set_prototype(\&some_function, '$$');

Sets the prototype for "coderef" to $prototype.

Thanks

Shawn M Moore for the idea and tests.

Support

Bugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=Sub-Prototype> (or [email protected] <mailto:[email protected]>).

Contributor

Karen Etheridge <[email protected]>

Releases

8 releases since Debian 7 (Wheezy); the text changed 7 times.

  1. 7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12
  7. 13
  8. Arch

Author

Florian Ragwitz <[email protected]>

From perl-sub-prototype 0.03-4 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.