summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominic Hargreaves <dom@earth.li>2016-04-30 18:58:06 +0100
committerDominic Hargreaves <dom@earth.li>2016-04-30 18:58:06 +0100
commit45cc06e3de6c5eed0544072a9b48f21ae63b577b (patch)
tree2b5645fa5b355b2f1b86cc46b814d4eda3faa910
parent6d46ab2cca742e8661fbd5a20568b8974c1cac4f (diff)
downloadperl-45cc06e3de6c5eed0544072a9b48f21ae63b577b.tar.gz
perlrun: note the existence of find's -delete switch
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776614
-rw-r--r--pod/perlrun.pod7
1 files changed, 4 insertions, 3 deletions
diff --git a/pod/perlrun.pod b/pod/perlrun.pod
index 1ff3ce2472..e454bf80c7 100644
--- a/pod/perlrun.pod
+++ b/pod/perlrun.pod
@@ -706,9 +706,10 @@ at least a week:
find . -mtime +7 -print | perl -nle unlink
This is faster than using the B<-exec> switch of I<find> because you don't
-have to start a process on every filename found. It does suffer from
-the bug of mishandling newlines in pathnames, which you can fix if
-you follow the example under B<-0>.
+have to start a process on every filename found (but it's not faster
+than using the B<-delete> switch available in newer versions of I<find>.
+It does suffer from the bug of mishandling newlines in pathnames, which
+you can fix if you follow the example under B<-0>.
C<BEGIN> and C<END> blocks may be used to capture control before or after
the implicit program loop, just as in I<awk>.