From: Rafael Garcia-Suarez <rgarciasuarez@gmail.com>
Date: Tue, 26 May 2009 12:00:35 +0000 (+0200)
Subject: File tests were already treated as boolean in when()
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1710b4c094bcb01846632947bc64dce5d1c62def;p=p5sagit%2Fp5-mst-13.2.git

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.
---

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,