summaryrefslogtreecommitdiff
path: root/pod/perlsub.pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-10-18 14:30:57 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-10-18 14:30:57 +0000
commitd822fdf9523774354b4abafec1aa0c8639788575 (patch)
tree5a2c38a0a96a5683d4607ef85b9fadeab6271506 /pod/perlsub.pod
parentf00d1d61e031a2a79e331ee3ee031a4f658d26e8 (diff)
downloadperl-d822fdf9523774354b4abafec1aa0c8639788575.tar.gz
Fix prototype to mimic built-in in perlsub examples
p4raw-id: //depot/perl@29037
Diffstat (limited to 'pod/perlsub.pod')
-rw-r--r--pod/perlsub.pod2
1 files changed, 1 insertions, 1 deletions
diff --git a/pod/perlsub.pod b/pod/perlsub.pod
index 7a51e5cabb..4c7dcd6209 100644
--- a/pod/perlsub.pod
+++ b/pod/perlsub.pod
@@ -1054,7 +1054,7 @@ corresponding built-in.
sub myopen (*;$) myopen HANDLE, $name
sub mypipe (**) mypipe READHANDLE, WRITEHANDLE
sub mygrep (&@) mygrep { /foo/ } $a, $b, $c
- sub myrand ($) myrand 42
+ sub myrand (;$) myrand 42
sub mytime () mytime
Any backslashed prototype character represents an actual argument