In perl.git, the branch blead has been updated

<https://perl5.git.perl.org/perl.git/commitdiff/060b1fe22cc4067b315c065f639cae016660a485?hp=3f1e98f5a21968dcf33fdecdc51b0ff9b485f86a>

- Log -----------------------------------------------------------------
commit 060b1fe22cc4067b315c065f639cae016660a485
Author: Tony Cook <[email protected]>
Date:   Tue Aug 27 14:44:35 2019 +1000

    (perl #134365) IFF -> iff and talk about strict a bit
    
    The IFF can be confusing, since "iff" for "if and only if" is
    normally presented in lower case.
    
    Since we really want people using strict, firstly tell users about
    the behaviour under strict.

-----------------------------------------------------------------------

Summary of changes:
 pod/perlsub.pod | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/pod/perlsub.pod b/pod/perlsub.pod
index 4571cbcc21..b5c05d274e 100644
--- a/pod/perlsub.pod
+++ b/pod/perlsub.pod
@@ -224,7 +224,12 @@ X<recursion>
     &foo();            # the same
 
     &foo;              # foo() get current args, like foo(@_) !!
-    foo;               # like foo() IFF sub foo predeclared, else "foo"
+    use strict 'subs';
+    foo;                # like foo() iff sub foo predeclared, else
+                        # a compile-time error
+    no strict 'subs';
+    foo;                # like foo() iff sub foo predeclared, else
+                        # a literal string "foo"
 
 Not only does the C<&> form make the argument list optional, it also
 disables any prototype checking on arguments you do provide.  This

-- 
Perl5 Master Repository

Reply via email to