{"action":"created","comment":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/comments/36341953","id":36341953,"diff_hunk":"@@ -122,10 +141,19 @@ handle query_raw => sub {\n     return if not defined $value_ref;\n \n     my $text_output = ${$value_ref};","path":"lib/DDG/Goodie/BinaryLogic.pm","position":55,"original_position":55,"commit_id":"19752ce2cd51d58a41f0b72a5b2f9e58c47755a7","original_commit_id":"19752ce2cd51d58a41f0b72a5b2f9e58c47755a7","user":{"login":"mintsoft","id":978048,"avatar_url":"https://avatars.githubusercontent.com/u/978048?v=3","gravatar_id":"","url":"https://api.github.com/users/mintsoft","html_url":"https://github.com/mintsoft","followers_url":"https://api.github.com/users/mintsoft/followers","following_url":"https://api.github.com/users/mintsoft/following{/other_user}","gists_url":"https://api.github.com/users/mintsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/mintsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mintsoft/subscriptions","organizations_url":"https://api.github.com/users/mintsoft/orgs","repos_url":"https://api.github.com/users/mintsoft/repos","events_url":"https://api.github.com/users/mintsoft/events{/privacy}","received_events_url":"https://api.github.com/users/mintsoft/received_events","type":"User","site_admin":false},"body":"@Sloff if you switch the text output to always be a string, i.e. to this:\r\n```perl\r\nmy $text_output = \"${$value_ref}\";\r\n```\r\nThen the \"0\" output will be displayed correctly.","created_at":"2015-08-05T19:12:18Z","updated_at":"2015-08-05T19:12:18Z","html_url":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/1328#discussion_r36341953","pull_request_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/1328","_links":{"self":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/comments/36341953"},"html":{"href":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/1328#discussion_r36341953"},"pull_request":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/1328"}}},"pull_request":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/1328","id":40752057,"html_url":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/1328","diff_url":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/1328.diff","patch_url":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/1328.patch","issue_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/1328","number":1328,"state":"open","locked":false,"title":"Binary Logic altered to use templates","user":{"login":"Sloff","id":7330170,"avatar_url":"https://avatars.githubusercontent.com/u/7330170?v=3","gravatar_id":"","url":"https://api.github.com/users/Sloff","html_url":"https://github.com/Sloff","followers_url":"https://api.github.com/users/Sloff/followers","following_url":"https://api.github.com/users/Sloff/following{/other_user}","gists_url":"https://api.github.com/users/Sloff/gists{/gist_id}","starred_url":"https://api.github.com/users/Sloff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sloff/subscriptions","organizations_url":"https://api.github.com/users/Sloff/orgs","repos_url":"https://api.github.com/users/Sloff/repos","events_url":"https://api.github.com/users/Sloff/events{/privacy}","received_events_url":"https://api.github.com/users/Sloff/received_events","type":"User","site_admin":false},"body":"Fixes part of #1163 \r\n\r\nBefore:\r\n![before 1](https://cloud.githubusercontent.com/assets/7330170/8870153/e74a5e70-31eb-11e5-881a-d07dfe5250ae.PNG)\r\n![before 2](https://cloud.githubusercontent.com/assets/7330170/8870154/e7832eb2-31eb-11e5-9a86-0bc8e5fcc63e.PNG)\r\n\r\nAfter:\r\n![after1](https://cloud.githubusercontent.com/assets/7330170/8870159/f06d4738-31eb-11e5-9f3b-12ca645d67ad.PNG)\r\n![after2](https://cloud.githubusercontent.com/assets/7330170/8870160/f06f30b6-31eb-11e5-86ae-10f80c85b178.PNG)\r\n","created_at":"2015-07-24T08:15:01Z","updated_at":"2015-08-05T19:12:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b1d2fbc05c886638c7d40c161c8d48346122a077","assignee":{"login":"abeyang","id":794084,"avatar_url":"https://avatars.githubusercontent.com/u/794084?v=3","gravatar_id":"","url":"https://api.github.com/users/abeyang","html_url":"https://github.com/abeyang","followers_url":"https://api.github.com/users/abeyang/followers","following_url":"https://api.github.com/users/abeyang/following{/other_user}","gists_url":"https://api.github.com/users/abeyang/gists{/gist_id}","starred_url":"https://api.github.com/users/abeyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abeyang/subscriptions","organizations_url":"https://api.github.com/users/abeyang/orgs","repos_url":"https://api.github.com/users/abeyang/repos","events_url":"https://api.github.com/users/abeyang/events{/privacy}","received_events_url":"https://api.github.com/users/abeyang/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/1328/commits","review_comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/1328/comments","review_comment_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/comments{/number}","comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/1328/comments","statuses_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/statuses/19752ce2cd51d58a41f0b72a5b2f9e58c47755a7","head":{"label":"Sloff:Sloff/BinaryLogic","ref":"Sloff/BinaryLogic","sha":"19752ce2cd51d58a41f0b72a5b2f9e58c47755a7","user":{"login":"Sloff","id":7330170,"avatar_url":"https://avatars.githubusercontent.com/u/7330170?v=3","gravatar_id":"","url":"https://api.github.com/users/Sloff","html_url":"https://github.com/Sloff","followers_url":"https://api.github.com/users/Sloff/followers","following_url":"https://api.github.com/users/Sloff/following{/other_user}","gists_url":"https://api.github.com/users/Sloff/gists{/gist_id}","starred_url":"https://api.github.com/users/Sloff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sloff/subscriptions","organizations_url":"https://api.github.com/users/Sloff/orgs","repos_url":"https://api.github.com/users/Sloff/repos","events_url":"https://api.github.com/users/Sloff/events{/privacy}","received_events_url":"https://api.github.com/users/Sloff/received_events","type":"User","site_admin":false},"repo":{"id":39120675,"name":"zeroclickinfo-goodies","full_name":"Sloff/zeroclickinfo-goodies","owner":{"login":"Sloff","id":7330170,"avatar_url":"https://avatars.githubusercontent.com/u/7330170?v=3","gravatar_id":"","url":"https://api.github.com/users/Sloff","html_url":"https://github.com/Sloff","followers_url":"https://api.github.com/users/Sloff/followers","following_url":"https://api.github.com/users/Sloff/following{/other_user}","gists_url":"https://api.github.com/users/Sloff/gists{/gist_id}","starred_url":"https://api.github.com/users/Sloff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sloff/subscriptions","organizations_url":"https://api.github.com/users/Sloff/orgs","repos_url":"https://api.github.com/users/Sloff/repos","events_url":"https://api.github.com/users/Sloff/events{/privacy}","received_events_url":"https://api.github.com/users/Sloff/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Sloff/zeroclickinfo-goodies","description":"DuckDuckGo instant answer plugins based on Perl functions","fork":true,"url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies","forks_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/forks","keys_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/teams","hooks_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/hooks","issue_events_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/issues/events{/number}","events_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/events","assignees_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/assignees{/user}","branches_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/branches{/branch}","tags_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/tags","blobs_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/statuses/{sha}","languages_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/languages","stargazers_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/stargazers","contributors_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/contributors","subscribers_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/subscribers","subscription_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/subscription","commits_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/contents/{+path}","compare_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/merges","archive_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/downloads","issues_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/issues{/number}","pulls_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/pulls{/number}","milestones_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/milestones{/number}","notifications_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/labels{/name}","releases_url":"https://api.github.com/repos/Sloff/zeroclickinfo-goodies/releases{/id}","created_at":"2015-07-15T06:37:04Z","updated_at":"2015-07-15T06:37:07Z","pushed_at":"2015-08-05T10:03:21Z","git_url":"git://github.com/Sloff/zeroclickinfo-goodies.git","ssh_url":"git@github.com:Sloff/zeroclickinfo-goodies.git","clone_url":"https://github.com/Sloff/zeroclickinfo-goodies.git","svn_url":"https://github.com/Sloff/zeroclickinfo-goodies","homepage":"http://duckduckhack.com/","size":10389,"stargazers_count":0,"watchers_count":0,"language":"Perl","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"duckduckgo:master","ref":"master","sha":"25bf084dd344c17714675e3501417285cbb4d0f9","user":{"login":"duckduckgo","id":342708,"avatar_url":"https://avatars.githubusercontent.com/u/342708?v=3","gravatar_id":"","url":"https://api.github.com/users/duckduckgo","html_url":"https://github.com/duckduckgo","followers_url":"https://api.github.com/users/duckduckgo/followers","following_url":"https://api.github.com/users/duckduckgo/following{/other_user}","gists_url":"https://api.github.com/users/duckduckgo/gists{/gist_id}","starred_url":"https://api.github.com/users/duckduckgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duckduckgo/subscriptions","organizations_url":"https://api.github.com/users/duckduckgo/orgs","repos_url":"https://api.github.com/users/duckduckgo/repos","events_url":"https://api.github.com/users/duckduckgo/events{/privacy}","received_events_url":"https://api.github.com/users/duckduckgo/received_events","type":"Organization","site_admin":false},"repo":{"id":2164979,"name":"zeroclickinfo-goodies","full_name":"duckduckgo/zeroclickinfo-goodies","owner":{"login":"duckduckgo","id":342708,"avatar_url":"https://avatars.githubusercontent.com/u/342708?v=3","gravatar_id":"","url":"https://api.github.com/users/duckduckgo","html_url":"https://github.com/duckduckgo","followers_url":"https://api.github.com/users/duckduckgo/followers","following_url":"https://api.github.com/users/duckduckgo/following{/other_user}","gists_url":"https://api.github.com/users/duckduckgo/gists{/gist_id}","starred_url":"https://api.github.com/users/duckduckgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duckduckgo/subscriptions","organizations_url":"https://api.github.com/users/duckduckgo/orgs","repos_url":"https://api.github.com/users/duckduckgo/repos","events_url":"https://api.github.com/users/duckduckgo/events{/privacy}","received_events_url":"https://api.github.com/users/duckduckgo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/duckduckgo/zeroclickinfo-goodies","description":"DuckDuckGo instant answer plugins based on Perl functions","fork":false,"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies","forks_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/forks","keys_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/teams","hooks_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/hooks","issue_events_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/events{/number}","events_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/events","assignees_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/assignees{/user}","branches_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/branches{/branch}","tags_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/tags","blobs_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/git/refs{/sha}","trees_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/statuses/{sha}","languages_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/languages","stargazers_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/stargazers","contributors_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/contributors","subscribers_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/subscribers","subscription_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/subscription","commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/commits{/sha}","git_commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/git/commits{/sha}","comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/comments{/number}","issue_comment_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/comments{/number}","contents_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/contents/{+path}","compare_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/merges","archive_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/downloads","issues_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues{/number}","pulls_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls{/number}","milestones_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/milestones{/number}","notifications_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/labels{/name}","releases_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/releases{/id}","created_at":"2011-08-06T13:26:05Z","updated_at":"2015-08-05T11:54:20Z","pushed_at":"2015-08-05T17:05:29Z","git_url":"git://github.com/duckduckgo/zeroclickinfo-goodies.git","ssh_url":"git@github.com:duckduckgo/zeroclickinfo-goodies.git","clone_url":"https://github.com/duckduckgo/zeroclickinfo-goodies.git","svn_url":"https://github.com/duckduckgo/zeroclickinfo-goodies","homepage":"http://duckduckhack.com/","size":29762,"stargazers_count":300,"watchers_count":300,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":945,"mirror_url":null,"open_issues_count":149,"forks":945,"open_issues":149,"watchers":300,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/1328"},"html":{"href":"https://github.com/duckduckgo/zeroclickinfo-goodies/pull/1328"},"issue":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/1328"},"comments":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/issues/1328/comments"},"review_comments":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/1328/comments"},"review_comment":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/pulls/1328/commits"},"statuses":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-goodies/statuses/19752ce2cd51d58a41f0b72a5b2f9e58c47755a7"}}}}