{"id":704,"date":"2012-07-05T10:25:08","date_gmt":"2012-07-05T15:25:08","guid":{"rendered":"http:\/\/osric.com\/chris\/accidental-developer\/?p=704"},"modified":"2012-07-05T11:47:39","modified_gmt":"2012-07-05T16:47:39","slug":"perl-error-running-w3c-checklink","status":"publish","type":"post","link":"https:\/\/osric.com\/chris\/accidental-developer\/2012\/07\/perl-error-running-w3c-checklink\/","title":{"rendered":"Perl error when running W3C checklink"},"content":{"rendered":"<p>I&#8217;m using <a href=\"http:\/\/www.activestate.com\/activeperl\/downloads\">ActiveState Perl 5.14.2<\/a> on a 64-bit Windows 7 machine. I downloaded and installed the <a href=\"http:\/\/validator.w3.org\/docs\/checklink.html\">W3C checklink<\/a> package via the Perl Package Manager.<\/p>\n<p>When I attempted to run checklink on the command line like this:<br \/>\n<code>C:\\Users\\chris\\&gt;checklinks http:\/\/osric.com<\/code><br \/>\nI got the following error message:<br \/>\n<code>\"-T\" is on the #! line, it must also be used on the command line.<\/code><\/p>\n<p>To get this to work, I had to run the command as follows:<br \/>\n<code>C:\\Users\\chris\\&gt;perl -T C:\\perl64\\site\\bin\\checklink http:\/\/osric.com<\/code><\/p>\n<p>The -T switch is to enable <a href=\"http:\/\/perldoc.perl.org\/perlsec.html#Taint-mode\">taint mode<\/a>, which helps protect the program from malicious input.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m using ActiveState Perl 5.14.2 on a 64-bit Windows 7 machine. I downloaded and installed the W3C checklink package via the Perl Package Manager. When I attempted to run checklink on the command line like this: C:\\Users\\chris\\&gt;checklinks http:\/\/osric.com I got the following error message: &#8220;-T&#8221; is on the #! line, it must also be used &hellip; <a href=\"https:\/\/osric.com\/chris\/accidental-developer\/2012\/07\/perl-error-running-w3c-checklink\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Perl error when running W3C checklink<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[92],"tags":[360],"class_list":["post-704","post","type-post","status-publish","format-standard","hentry","category-perl","tag-perl"],"_links":{"self":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts\/704","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/comments?post=704"}],"version-history":[{"count":4,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts\/704\/revisions"}],"predecessor-version":[{"id":708,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts\/704\/revisions\/708"}],"wp:attachment":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/media?parent=704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/categories?post=704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/tags?post=704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}