summaryrefslogtreecommitdiff
path: root/pod/perlfunc.pod
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-12-28 16:09:12 -0800
committerFather Chrysostomos <sprout@cpan.org>2014-12-28 16:35:53 -0800
commit4964f676ab84eee840a22ed626f8a1a15b9370dd (patch)
tree51e8a2187e3b0698dc3591595f8bfd3cad04c0f1 /pod/perlfunc.pod
parenteb4ec35b34d91de654d6eb753c89dca0b28c7a07 (diff)
downloadperl-4964f676ab84eee840a22ed626f8a1a15b9370dd.tar.gz
perlfunc: prototype implies $_
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r--pod/perlfunc.pod5
1 files changed, 4 insertions, 1 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index e7ccfa42c3..ce945eb050 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -5352,11 +5352,14 @@ error prone.
=item prototype FUNCTION
X<prototype>
+=item prototype
+
=for Pod::Functions +5.002 get the prototype (if any) of a subroutine
Returns the prototype of a function as a string (or C<undef> if the
function has no prototype). FUNCTION is a reference to, or the name of,
-the function whose prototype you want to retrieve.
+the function whose prototype you want to retrieve. If FUNCTION is omitted,
+$_ is used.
If FUNCTION is a string starting with C<CORE::>, the rest is taken as a
name for a Perl builtin. If the builtin's arguments