link-checker commit: Disable Perl's recursion warnings for recursive algorithm.

changeset:   247:bbcb5c9beab9
user:        mernst
date:        Fri Oct 17 04:36:19 2008 +0000
files:       bin/checklink
description:
Disable Perl's recursion warnings for recursive algorithm.


diff -r 7c2634a62b2f -r bbcb5c9beab9 bin/checklink
--- a/bin/checklink	Fri Oct 17 04:33:59 2008 +0000
+++ b/bin/checklink	Fri Oct 17 04:36:19 2008 +0000
@@ -5,7 +5,7 @@
 # (c) 1999-2008 World Wide Web Consortium
 # based on Renaud Bruyeron's checklink.pl
 #
-# $Id: checklink,v 4.117 2008-10-17 04:33:59 mernst Exp $
+# $Id: checklink,v 4.118 2008-10-17 04:36:19 mernst Exp $
 #
 # This program is licensed under the W3C(r) Software License:
 #       http://www.w3.org/Consortium/Legal/copyright-software
@@ -259,7 +259,7 @@
   $PROGRAM     = 'W3C-checklink';
   $VERSION     = '4.3';
   $REVISION    = sprintf('version %s (c) 1999-2008 W3C', $VERSION);
-  my ($cvsver) = q$Revision: 4.117 $ =~ /(\d+[\d\.]*\.\d+)/;
+  my ($cvsver) = q$Revision: 4.118 $ =~ /(\d+[\d\.]*\.\d+)/;
   $AGENT       = sprintf('%s/%s [%s] %s',
                          $PROGRAM, $VERSION, $cvsver,
                          (W3C::UserAgent::USE_ROBOT_UA
@@ -1092,6 +1092,10 @@
           }
         }
       }
+
+      # This is an inherently recursive algorithm, so Perl's warning is not
+      # helpful.  You may wish to comment this out when debugging, though.
+      no warnings 'recursion';
 
       if ($depth < 0) {
         &check_uri($params, $u, 0, -1, $cookie, $uri);

Received on Thursday, 5 August 2010 14:47:33 UTC