411 REFERENCE · Wikibooks
Perl Programming/Keywords/prototype
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Perl printf push Keywords
The prototype keyword
The prototype function returns the prototype of a function with the name "FUNCTION" as a string. If FUNCTION is a string that starts with CORE::, the rest is understood as a Perl builtin. If the arguments cannot be expressed by a prototype or the function does not have any, undef is returned. Otherwise, the string describing the equivalent prototype is returned.
From Perl 5.14.0 onwards, a scalar EXPRESSION can be passed that should hold a reference to an unblessed array. The argument is dereferenced automatically. This is a highly experimental aspect of prototype and may change in future Perl versions.
Syntax
prototype FUNCTION
See also
pop
shift
Perl printf push Keywords