W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2010

link-checker commit: Fix indirect call syntax issues flagged by perlcritic.

From: Mercurial notifier <nobody@w3.org>
Date: Thu, 05 Aug 2010 14:47:24 +0000
To: link-checker updates <www-validator-cvs@w3.org>
Message-Id: <E1Oh1jA-0006Kr-84@blinky.w3.org>
changeset:   334:edf99474c94b
user:        ville
date:        Wed Dec 16 18:52:21 2009 +0000
files:       bin/checklink
description:
Fix indirect call syntax issues flagged by perlcritic.


diff -r 44778eac7c35 -r edf99474c94b bin/checklink
--- a/bin/checklink	Thu Dec 03 21:35:02 2009 +0000
+++ b/bin/checklink	Wed Dec 16 18:52:21 2009 +0000
@@ -5,7 +5,7 @@
 # (c) 1999-2009 World Wide Web Consortium
 # based on Renaud Bruyeron's checklink.pl
 #
-# $Id: checklink,v 4.171 2009-12-03 21:28:09 ville Exp $
+# $Id: checklink,v 4.172 2009-12-16 18:52:21 ville Exp $
 #
 # This program is licensed under the W3C(r) Software License:
 #       http://www.w3.org/Consortium/Legal/copyright-software
@@ -283,7 +283,7 @@
   $PROGRAM     = 'W3C-checklink';
   $VERSION     = '4.5';
   $REVISION    = sprintf('version %s (c) 1999-2009 W3C', $VERSION);
-  my ($cvsver) = q$Revision: 4.171 $ =~ /(\d+[\d\.]*\.\d+)/;
+  my ($cvsver) = q$Revision: 4.172 $ =~ /(\d+[\d\.]*\.\d+)/;
   $AGENT       = sprintf('%s/%s [%s] %s',
                          $PROGRAM, $VERSION, $cvsver,
                          (W3C::UserAgent::USE_ROBOT_UA
@@ -532,7 +532,7 @@
   push(@$forbidden, 'file');
   $ua->protocols_forbidden($forbidden);
 
-  my $query = new CGI;
+  my $query = CGI->new();
   # Set a few parameters in CGI mode
   $Opts{Verbose}   = 0;
   $Opts{Progress}  = 0;
@@ -1424,7 +1424,7 @@
 
   &hprintf("%s %s ", $method, $uri) if $verbose_progress;
 
-  my $request = new HTTP::Request($method, $uri);
+  my $request = HTTP::Request->new($method, $uri);
 
   $request->header('Accept-Language' => $Opts{Accept_Language})
     if $Opts{Accept_Language};
Received on Thursday, 5 August 2010 14:47:39 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:43 UTC