Query: sub::prototype
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Sub::Prototype(3pm) User Contributed Perl Documentation Sub::Prototype(3pm)NAMESub::Prototype - Set a subs prototypeSYNOPSISuse Sub::Prototype; BEGIN { my $code = sub { ... }; set_prototype($code, '&@'); *main::my_func = $code; } my_func { ... } @list;FUNCTIONSThis 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.THANKSShawn M Moore for the idea and tests.AUTHORFlorian Ragwitz <rafl@debian.org>COPYRIGHT AND LICENSECopyright (c) 2008 Florian Ragwitz This module is free software. It may distribute it under the same terms as perl itself. perl v5.14.2 2008-11-11 Sub::Prototype(3pm)
Similar Topics in the Unix Linux Community |
---|
Installing Dash Shell on OS X Lion |
Is UNIX an open source OS ? |
Introduction |
Find columns in a file based on header and print to new file |
A (ksh) Library For and From UNIX.com |