{"id":456,"date":"2012-01-03T08:50:55","date_gmt":"2012-01-03T08:50:55","guid":{"rendered":"http:\/\/www.nooblet.org\/blog\/?p=456"},"modified":"2013-01-10T02:08:52","modified_gmt":"2013-01-10T02:08:52","slug":"backuppc-use-of-qw-as-parentheses-is-deprecated","status":"publish","type":"post","link":"https:\/\/www.nooblet.org\/blog\/2012\/backuppc-use-of-qw-as-parentheses-is-deprecated\/","title":{"rendered":"backuppc: Use of qw(&#8230;) as parentheses is deprecated"},"content":{"rendered":"<p>If you upgrade Perl to 5.13.5 or beyond, backuppc will begin to spew this warning at every oppurtunity. Debian\/wheezy currently has these warnings on startup and in backuppc logs.<\/p>\n<p>Debian bug <a href=\"http:\/\/bugs.debian.org\/cgi-bin\/bugreport.cgi?bug=650522\" title=\"Debian bug report #650522\" target=\"_blank\">#650522<\/a> suggests surrounding each use of qw(&#8230;) with rounded parenthesis: (qw(&#8230;)). There are a lot these used throughout backuppc, so I took a slightly less ingenious but just as effective route.<\/p>\n<p>By adding: &#8220;<code>no warnings 'deprecated';<\/code>&#8221; to the beginning of each file that uses qw(&#8230;), the warnings are suppressed. This change can be scripted by using the following one-liner:<\/p>\n<pre class=\"lang:sh decode:true\" >grep -ril 'qw(' \/usr\/share\/backuppc\/lib\/BackupPC\/|while read file; do sed -i \"1i no warnings 'deprecated';\" $file; done<\/pre>\n<p>The location \/usr\/share\/backuppc\/lib\/BackupPC\/ is used on Debian\/wheezy and may need adjusting for other distros.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you upgrade Perl to 5.13.5 or beyond, backuppc will begin to spew this warning at every oppurtunity. Debian\/wheezy currently has these warnings on startup and in backuppc logs. Debian bug #650522 suggests surrounding each use of qw(&#8230;) with rounded parenthesis: (qw(&#8230;)). There are a lot these used throughout backuppc, so I took a slightly [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":648,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,5],"tags":[26,233,124],"class_list":["post-456","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-code","category-linux","tag-backuppc","tag-linux","tag-perl"],"_links":{"self":[{"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/posts\/456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/comments?post=456"}],"version-history":[{"count":5,"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/posts\/456\/revisions"}],"predecessor-version":[{"id":669,"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/posts\/456\/revisions\/669"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/media\/648"}],"wp:attachment":[{"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/media?parent=456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/categories?post=456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nooblet.org\/blog\/wp-json\/wp\/v2\/tags?post=456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}