{"action":"created","comment":{"url":"https://api.github.com/repos/qianliok/learningperl/pulls/comments/39609170","id":39609170,"diff_hunk":"@@ -0,0 +1,38 @@\n+#!perl\n+use warnings;\n+use strict;\n+\n+my @fred = above_average(1..10);\n+print \"\\@fred is @fred\\n\";\n+print \"(Should be 6 7 8 9 10)\\n\";\n+my @barney = above_average(100, 1..10);\n+print \"\\@barney is @barney\\n\";\n+print \"(Should be just 100)\\n\";\n+\n+sub average {\n+  if (@_ == 0) { \n+  \treturn\n+  }","path":"chapter04/ex_4_3.pl","position":15,"original_position":15,"commit_id":"55a950a30e4ea3562dd71af46d0fadc504dd703e","original_commit_id":"55a950a30e4ea3562dd71af46d0fadc504dd703e","user":{"login":"dpratyusha","id":2051498,"avatar_url":"https://avatars.githubusercontent.com/u/2051498?v=3","gravatar_id":"","url":"https://api.github.com/users/dpratyusha","html_url":"https://github.com/dpratyusha","followers_url":"https://api.github.com/users/dpratyusha/followers","following_url":"https://api.github.com/users/dpratyusha/following{/other_user}","gists_url":"https://api.github.com/users/dpratyusha/gists{/gist_id}","starred_url":"https://api.github.com/users/dpratyusha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpratyusha/subscriptions","organizations_url":"https://api.github.com/users/dpratyusha/orgs","repos_url":"https://api.github.com/users/dpratyusha/repos","events_url":"https://api.github.com/users/dpratyusha/events{/privacy}","received_events_url":"https://api.github.com/users/dpratyusha/received_events","type":"User","site_admin":false},"body":"Probably can just do <code> if(@_) </code>. ","created_at":"2015-09-16T09:22:59Z","updated_at":"2015-09-16T09:22:59Z","html_url":"https://github.com/qianliok/learningperl/pull/24#discussion_r39609170","pull_request_url":"https://api.github.com/repos/qianliok/learningperl/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/qianliok/learningperl/pulls/comments/39609170"},"html":{"href":"https://github.com/qianliok/learningperl/pull/24#discussion_r39609170"},"pull_request":{"href":"https://api.github.com/repos/qianliok/learningperl/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/qianliok/learningperl/pulls/24","id":45064430,"html_url":"https://github.com/qianliok/learningperl/pull/24","diff_url":"https://github.com/qianliok/learningperl/pull/24.diff","patch_url":"https://github.com/qianliok/learningperl/pull/24.patch","issue_url":"https://api.github.com/repos/qianliok/learningperl/issues/24","number":24,"state":"open","locked":false,"title":"Chapter 4","user":{"login":"sebing","id":5242384,"avatar_url":"https://avatars.githubusercontent.com/u/5242384?v=3","gravatar_id":"","url":"https://api.github.com/users/sebing","html_url":"https://github.com/sebing","followers_url":"https://api.github.com/users/sebing/followers","following_url":"https://api.github.com/users/sebing/following{/other_user}","gists_url":"https://api.github.com/users/sebing/gists{/gist_id}","starred_url":"https://api.github.com/users/sebing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebing/subscriptions","organizations_url":"https://api.github.com/users/sebing/orgs","repos_url":"https://api.github.com/users/sebing/repos","events_url":"https://api.github.com/users/sebing/events{/privacy}","received_events_url":"https://api.github.com/users/sebing/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-15T15:31:43Z","updated_at":"2015-09-16T09:22:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7fdb91e5b6fa639961054c5219376a21baa0ca8b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/qianliok/learningperl/pulls/24/commits","review_comments_url":"https://api.github.com/repos/qianliok/learningperl/pulls/24/comments","review_comment_url":"https://api.github.com/repos/qianliok/learningperl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/qianliok/learningperl/issues/24/comments","statuses_url":"https://api.github.com/repos/qianliok/learningperl/statuses/55a950a30e4ea3562dd71af46d0fadc504dd703e","head":{"label":"qianliok:sxg.chapter04","ref":"sxg.chapter04","sha":"55a950a30e4ea3562dd71af46d0fadc504dd703e","user":{"login":"qianliok","id":12003579,"avatar_url":"https://avatars.githubusercontent.com/u/12003579?v=3","gravatar_id":"","url":"https://api.github.com/users/qianliok","html_url":"https://github.com/qianliok","followers_url":"https://api.github.com/users/qianliok/followers","following_url":"https://api.github.com/users/qianliok/following{/other_user}","gists_url":"https://api.github.com/users/qianliok/gists{/gist_id}","starred_url":"https://api.github.com/users/qianliok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qianliok/subscriptions","organizations_url":"https://api.github.com/users/qianliok/orgs","repos_url":"https://api.github.com/users/qianliok/repos","events_url":"https://api.github.com/users/qianliok/events{/privacy}","received_events_url":"https://api.github.com/users/qianliok/received_events","type":"User","site_admin":false},"repo":{"id":40885774,"name":"learningperl","full_name":"qianliok/learningperl","owner":{"login":"qianliok","id":12003579,"avatar_url":"https://avatars.githubusercontent.com/u/12003579?v=3","gravatar_id":"","url":"https://api.github.com/users/qianliok","html_url":"https://github.com/qianliok","followers_url":"https://api.github.com/users/qianliok/followers","following_url":"https://api.github.com/users/qianliok/following{/other_user}","gists_url":"https://api.github.com/users/qianliok/gists{/gist_id}","starred_url":"https://api.github.com/users/qianliok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qianliok/subscriptions","organizations_url":"https://api.github.com/users/qianliok/orgs","repos_url":"https://api.github.com/users/qianliok/repos","events_url":"https://api.github.com/users/qianliok/events{/privacy}","received_events_url":"https://api.github.com/users/qianliok/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/qianliok/learningperl","description":"Learning Perl Training","fork":false,"url":"https://api.github.com/repos/qianliok/learningperl","forks_url":"https://api.github.com/repos/qianliok/learningperl/forks","keys_url":"https://api.github.com/repos/qianliok/learningperl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qianliok/learningperl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qianliok/learningperl/teams","hooks_url":"https://api.github.com/repos/qianliok/learningperl/hooks","issue_events_url":"https://api.github.com/repos/qianliok/learningperl/issues/events{/number}","events_url":"https://api.github.com/repos/qianliok/learningperl/events","assignees_url":"https://api.github.com/repos/qianliok/learningperl/assignees{/user}","branches_url":"https://api.github.com/repos/qianliok/learningperl/branches{/branch}","tags_url":"https://api.github.com/repos/qianliok/learningperl/tags","blobs_url":"https://api.github.com/repos/qianliok/learningperl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qianliok/learningperl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qianliok/learningperl/git/refs{/sha}","trees_url":"https://api.github.com/repos/qianliok/learningperl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qianliok/learningperl/statuses/{sha}","languages_url":"https://api.github.com/repos/qianliok/learningperl/languages","stargazers_url":"https://api.github.com/repos/qianliok/learningperl/stargazers","contributors_url":"https://api.github.com/repos/qianliok/learningperl/contributors","subscribers_url":"https://api.github.com/repos/qianliok/learningperl/subscribers","subscription_url":"https://api.github.com/repos/qianliok/learningperl/subscription","commits_url":"https://api.github.com/repos/qianliok/learningperl/commits{/sha}","git_commits_url":"https://api.github.com/repos/qianliok/learningperl/git/commits{/sha}","comments_url":"https://api.github.com/repos/qianliok/learningperl/comments{/number}","issue_comment_url":"https://api.github.com/repos/qianliok/learningperl/issues/comments{/number}","contents_url":"https://api.github.com/repos/qianliok/learningperl/contents/{+path}","compare_url":"https://api.github.com/repos/qianliok/learningperl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qianliok/learningperl/merges","archive_url":"https://api.github.com/repos/qianliok/learningperl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qianliok/learningperl/downloads","issues_url":"https://api.github.com/repos/qianliok/learningperl/issues{/number}","pulls_url":"https://api.github.com/repos/qianliok/learningperl/pulls{/number}","milestones_url":"https://api.github.com/repos/qianliok/learningperl/milestones{/number}","notifications_url":"https://api.github.com/repos/qianliok/learningperl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qianliok/learningperl/labels{/name}","releases_url":"https://api.github.com/repos/qianliok/learningperl/releases{/id}","created_at":"2015-08-17T10:31:22Z","updated_at":"2015-09-07T11:21:26Z","pushed_at":"2015-09-15T23:33:20Z","git_url":"git://github.com/qianliok/learningperl.git","ssh_url":"git@github.com:qianliok/learningperl.git","clone_url":"https://github.com/qianliok/learningperl.git","svn_url":"https://github.com/qianliok/learningperl","homepage":null,"size":702,"stargazers_count":2,"watchers_count":2,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":9,"forks":1,"open_issues":9,"watchers":2,"default_branch":"master"}},"base":{"label":"qianliok:master","ref":"master","sha":"0e5cb720c18eae2cd7ce2a1929918274928207e1","user":{"login":"qianliok","id":12003579,"avatar_url":"https://avatars.githubusercontent.com/u/12003579?v=3","gravatar_id":"","url":"https://api.github.com/users/qianliok","html_url":"https://github.com/qianliok","followers_url":"https://api.github.com/users/qianliok/followers","following_url":"https://api.github.com/users/qianliok/following{/other_user}","gists_url":"https://api.github.com/users/qianliok/gists{/gist_id}","starred_url":"https://api.github.com/users/qianliok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qianliok/subscriptions","organizations_url":"https://api.github.com/users/qianliok/orgs","repos_url":"https://api.github.com/users/qianliok/repos","events_url":"https://api.github.com/users/qianliok/events{/privacy}","received_events_url":"https://api.github.com/users/qianliok/received_events","type":"User","site_admin":false},"repo":{"id":40885774,"name":"learningperl","full_name":"qianliok/learningperl","owner":{"login":"qianliok","id":12003579,"avatar_url":"https://avatars.githubusercontent.com/u/12003579?v=3","gravatar_id":"","url":"https://api.github.com/users/qianliok","html_url":"https://github.com/qianliok","followers_url":"https://api.github.com/users/qianliok/followers","following_url":"https://api.github.com/users/qianliok/following{/other_user}","gists_url":"https://api.github.com/users/qianliok/gists{/gist_id}","starred_url":"https://api.github.com/users/qianliok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qianliok/subscriptions","organizations_url":"https://api.github.com/users/qianliok/orgs","repos_url":"https://api.github.com/users/qianliok/repos","events_url":"https://api.github.com/users/qianliok/events{/privacy}","received_events_url":"https://api.github.com/users/qianliok/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/qianliok/learningperl","description":"Learning Perl Training","fork":false,"url":"https://api.github.com/repos/qianliok/learningperl","forks_url":"https://api.github.com/repos/qianliok/learningperl/forks","keys_url":"https://api.github.com/repos/qianliok/learningperl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qianliok/learningperl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qianliok/learningperl/teams","hooks_url":"https://api.github.com/repos/qianliok/learningperl/hooks","issue_events_url":"https://api.github.com/repos/qianliok/learningperl/issues/events{/number}","events_url":"https://api.github.com/repos/qianliok/learningperl/events","assignees_url":"https://api.github.com/repos/qianliok/learningperl/assignees{/user}","branches_url":"https://api.github.com/repos/qianliok/learningperl/branches{/branch}","tags_url":"https://api.github.com/repos/qianliok/learningperl/tags","blobs_url":"https://api.github.com/repos/qianliok/learningperl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qianliok/learningperl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qianliok/learningperl/git/refs{/sha}","trees_url":"https://api.github.com/repos/qianliok/learningperl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qianliok/learningperl/statuses/{sha}","languages_url":"https://api.github.com/repos/qianliok/learningperl/languages","stargazers_url":"https://api.github.com/repos/qianliok/learningperl/stargazers","contributors_url":"https://api.github.com/repos/qianliok/learningperl/contributors","subscribers_url":"https://api.github.com/repos/qianliok/learningperl/subscribers","subscription_url":"https://api.github.com/repos/qianliok/learningperl/subscription","commits_url":"https://api.github.com/repos/qianliok/learningperl/commits{/sha}","git_commits_url":"https://api.github.com/repos/qianliok/learningperl/git/commits{/sha}","comments_url":"https://api.github.com/repos/qianliok/learningperl/comments{/number}","issue_comment_url":"https://api.github.com/repos/qianliok/learningperl/issues/comments{/number}","contents_url":"https://api.github.com/repos/qianliok/learningperl/contents/{+path}","compare_url":"https://api.github.com/repos/qianliok/learningperl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qianliok/learningperl/merges","archive_url":"https://api.github.com/repos/qianliok/learningperl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qianliok/learningperl/downloads","issues_url":"https://api.github.com/repos/qianliok/learningperl/issues{/number}","pulls_url":"https://api.github.com/repos/qianliok/learningperl/pulls{/number}","milestones_url":"https://api.github.com/repos/qianliok/learningperl/milestones{/number}","notifications_url":"https://api.github.com/repos/qianliok/learningperl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qianliok/learningperl/labels{/name}","releases_url":"https://api.github.com/repos/qianliok/learningperl/releases{/id}","created_at":"2015-08-17T10:31:22Z","updated_at":"2015-09-07T11:21:26Z","pushed_at":"2015-09-15T23:33:20Z","git_url":"git://github.com/qianliok/learningperl.git","ssh_url":"git@github.com:qianliok/learningperl.git","clone_url":"https://github.com/qianliok/learningperl.git","svn_url":"https://github.com/qianliok/learningperl","homepage":null,"size":702,"stargazers_count":2,"watchers_count":2,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":9,"forks":1,"open_issues":9,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/qianliok/learningperl/pulls/24"},"html":{"href":"https://github.com/qianliok/learningperl/pull/24"},"issue":{"href":"https://api.github.com/repos/qianliok/learningperl/issues/24"},"comments":{"href":"https://api.github.com/repos/qianliok/learningperl/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/qianliok/learningperl/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/qianliok/learningperl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/qianliok/learningperl/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/qianliok/learningperl/statuses/55a950a30e4ea3562dd71af46d0fadc504dd703e"}}}}