GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SUB::PROTOTYPE (3)

.ds Aq ’

NAME

Sub::Prototype - Set a subs prototype

CONTENTS

SYNOPSIS



    use Sub::Prototype;

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

    my_func { ... } @list;



FUNCTIONS

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

set_prototype(\&coderef, CW$prototype)



    set_prototype(\&some_function, $$);



Sets the prototype for coderef to $prototype.

THANKS

Shawn M Moore for the idea and tests.

AUTHOR

Florian Ragwitz <rafl@debian.org>

COPYRIGHT AND LICENSE

Copyright (c) 2008 Florian Ragwitz

This module is free software.

It may distribute it under the same terms as perl itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 SUB::PROTOTYPE (3) 2008-11-11

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.