This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix prototype to mimic built-in in perlsub examples
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Wed, 18 Oct 2006 14:30:57 +0000 (14:30 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Wed, 18 Oct 2006 14:30:57 +0000 (14:30 +0000)
p4raw-id: //depot/perl@29037

pod/perlsub.pod

index 7a51e5c..4c7dcd6 100644 (file)
@@ -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