In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/1710b4c094bcb01846632947bc64dce5d1c62def?hp=8df0e0edf4a8a108bdd1dc681d519947c09a5332>

- Log -----------------------------------------------------------------
commit 1710b4c094bcb01846632947bc64dce5d1c62def
Author: Rafael Garcia-Suarez <[email protected]>
Date:   Tue May 26 14:00:35 2009 +0200

    File tests were already treated as boolean in when()
    
    It was just not documented in 5.10.0. So no need to mention this
    as new in perldelta.
-----------------------------------------------------------------------

Summary of changes:
 pod/perl5110delta.pod |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/pod/perl5110delta.pod b/pod/perl5110delta.pod
index 4e9d97b..69e1ba2 100644
--- a/pod/perl5110delta.pod
+++ b/pod/perl5110delta.pod
@@ -12,19 +12,12 @@ development releases.
 =head2 Switch statement changes
 
 The handling of complex expressions by the C<given>/C<when> switch
-statement has been enhanced. There are three new cases where C<when> now
+statement has been enhanced. There are two new cases where C<when> now
 inteprets its argument as a boolean, instead of an expression to be used
 in a smart match:
 
 =over 4
 
-=item file tests
-
-File tests that return a boolean value (that excludes C<-s>, C<-M>, C<-A>,
-and C<-C>):
-
-    when (-f $file) { say "$file is a file" }
-
 =item flip-flop operators
 
 The C<..> and C<...> flip-flop operators are evaluated in boolean context,

--
Perl5 Master Repository

Reply via email to