{"action":"created","comment":{"url":"https://api.github.com/repos/qianliok/learningperl/pulls/comments/39031788","id":39031788,"diff_hunk":"@@ -0,0 +1,14 @@\n+#!/usr/bin/perl\n+\n+use 5.010;\n+use warnings;\n+\n+say \"Enter Strings to be reversed:\";\n+\n+chomp(@strings=<>);\n+\n+@result = reverse @strings;\n+\n+foreach $result (@result) {\n+  say $result;\n+};","path":"chapter03/mdw/Ex-1.pl","position":14,"original_position":14,"commit_id":"649772c9e4ce274d71f90e276881f95b78e64045","original_commit_id":"649772c9e4ce274d71f90e276881f95b78e64045","user":{"login":"JPeace2","id":12459479,"avatar_url":"https://avatars.githubusercontent.com/u/12459479?v=3","gravatar_id":"","url":"https://api.github.com/users/JPeace2","html_url":"https://github.com/JPeace2","followers_url":"https://api.github.com/users/JPeace2/followers","following_url":"https://api.github.com/users/JPeace2/following{/other_user}","gists_url":"https://api.github.com/users/JPeace2/gists{/gist_id}","starred_url":"https://api.github.com/users/JPeace2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JPeace2/subscriptions","organizations_url":"https://api.github.com/users/JPeace2/orgs","repos_url":"https://api.github.com/users/JPeace2/repos","events_url":"https://api.github.com/users/JPeace2/events{/privacy}","received_events_url":"https://api.github.com/users/JPeace2/received_events","type":"User","site_admin":false},"body":"You could just avoid using chomp and then print the array. It saves removing the new lines and then adding them again.","created_at":"2015-09-09T11:36:02Z","updated_at":"2015-09-09T11:36:02Z","html_url":"https://github.com/qianliok/learningperl/pull/12#discussion_r39031788","pull_request_url":"https://api.github.com/repos/qianliok/learningperl/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/qianliok/learningperl/pulls/comments/39031788"},"html":{"href":"https://github.com/qianliok/learningperl/pull/12#discussion_r39031788"},"pull_request":{"href":"https://api.github.com/repos/qianliok/learningperl/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/qianliok/learningperl/pulls/12","id":44410646,"html_url":"https://github.com/qianliok/learningperl/pull/12","diff_url":"https://github.com/qianliok/learningperl/pull/12.diff","patch_url":"https://github.com/qianliok/learningperl/pull/12.patch","issue_url":"https://api.github.com/repos/qianliok/learningperl/issues/12","number":12,"state":"open","locked":false,"title":"Mark Chapter 3 ","user":{"login":"MarkWignall","id":13888704,"avatar_url":"https://avatars.githubusercontent.com/u/13888704?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkWignall","html_url":"https://github.com/MarkWignall","followers_url":"https://api.github.com/users/MarkWignall/followers","following_url":"https://api.github.com/users/MarkWignall/following{/other_user}","gists_url":"https://api.github.com/users/MarkWignall/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkWignall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkWignall/subscriptions","organizations_url":"https://api.github.com/users/MarkWignall/orgs","repos_url":"https://api.github.com/users/MarkWignall/repos","events_url":"https://api.github.com/users/MarkWignall/events{/privacy}","received_events_url":"https://api.github.com/users/MarkWignall/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-08T09:33:31Z","updated_at":"2015-09-09T11:36:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1014cd0fcc90a2083213cedd433455c15a4a6af7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/qianliok/learningperl/pulls/12/commits","review_comments_url":"https://api.github.com/repos/qianliok/learningperl/pulls/12/comments","review_comment_url":"https://api.github.com/repos/qianliok/learningperl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/qianliok/learningperl/issues/12/comments","statuses_url":"https://api.github.com/repos/qianliok/learningperl/statuses/649772c9e4ce274d71f90e276881f95b78e64045","head":{"label":"qianliok:chapter3_mdw","ref":"chapter3_mdw","sha":"649772c9e4ce274d71f90e276881f95b78e64045","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-09T08:52:34Z","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":528,"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":8,"forks":1,"open_issues":8,"watchers":2,"default_branch":"master"}},"base":{"label":"qianliok:master","ref":"master","sha":"bab78dc1bead7b7a28b8e17355f6555e58cf1525","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-09T08:52:34Z","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":528,"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":8,"forks":1,"open_issues":8,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/qianliok/learningperl/pulls/12"},"html":{"href":"https://github.com/qianliok/learningperl/pull/12"},"issue":{"href":"https://api.github.com/repos/qianliok/learningperl/issues/12"},"comments":{"href":"https://api.github.com/repos/qianliok/learningperl/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/qianliok/learningperl/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/qianliok/learningperl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/qianliok/learningperl/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/qianliok/learningperl/statuses/649772c9e4ce274d71f90e276881f95b78e64045"}}}}