{"action":"created","comment":{"url":"https://api.github.com/repos/ahwagner/myJoin/pulls/comments/28467568","id":28467568,"diff_hunk":"@@ -18,68 +18,67 @@\n my @dup;\n \n #set input flags\n-GetOptions (\"H\" => \\$header,\n-            \"unique\" => \\$unique,\n-            \"duplicate\" => \\$duplicate,\n-            \"help\" => \\$help) or die (\"Error in command line arguments -h for help\\n\");\n+GetOptions(\"H\" => \\$header,\n+\"unique\" => \\$unique,\n+\"duplicate\" => \\$duplicate,\n+\"help\" => \\$help) or die(\"Error in command line arguments -h for help\\n\");\n \n #return help flag\n-help_me() if ($help);\n+help_me()  ($help);\n \n-#check for incorrect usage of -d and -u\n+#check for incorrect usage -d and -u\n die \"Error in command line arguments --h for help\\n\" if ($duplicate && $unique);\n \n #command line input\n foreach(@ARGV){\n-\tline_hash1($_);\n+    line_hash1($_);\n }\n \n #add hash keys to uniq and dup arrays\n-if ($header){\n+if($header){\n     print \"$header_text\\n\";\n }\n \n foreach my $line(sort keys %line1){\n-\tprint \"$line\\n\" if ($unique && $line1{$line} == 1);\n-\tprint \"$line\\n\" if ($duplicate && $line1{$line} > 1);\n-\tprint \"$line\\n\" if (!$unique && !$duplicate);\n+    print \"$line\\n\" if ($unique && $line1{$line} == 1);\n+    print \"$line\\n\" if ($duplicate && $line1{$line} > 1);\n+    print \"$line\\n\" if (!$unique  !$duplicate);\n }\n \n exit;\n \n-\n ###################################################\n-\n-#Use first observed line as header if flagged, populate hash with line name as hash key.\n-#Duplicate line names removed keys cannot be duplicated in hash.\n+#use first observed line as header if flagged, populate hash with line name as key\n+#Duplicate line names removed, keys can not be duplicated in hash.\n #increment any names repeated more than once, indicates they are duplicates.\n+\n sub line_hash1{\n-\tmy $input = shift;\n+    my $input = shift;\n     open(FILE, $input) or die $!;\n     if ($header){\n-    \t$header_text = <FILE>;\n-    \tchomp $header_text;\n+        $header_text = <FILE>;\n+        chomp $header_text;","path":"myJoin.pl","position":61,"original_position":61,"commit_id":"d3d9fea3eba7ea49afd6c4be4f11145f749a9f65","original_commit_id":"d3d9fea3eba7ea49afd6c4be4f11145f749a9f65","user":{"login":"ahwagner","id":811065,"avatar_url":"https://avatars.githubusercontent.com/u/811065?v=3","gravatar_id":"","url":"https://api.github.com/users/ahwagner","html_url":"https://github.com/ahwagner","followers_url":"https://api.github.com/users/ahwagner/followers","following_url":"https://api.github.com/users/ahwagner/following{/other_user}","gists_url":"https://api.github.com/users/ahwagner/gists{/gist_id}","starred_url":"https://api.github.com/users/ahwagner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahwagner/subscriptions","organizations_url":"https://api.github.com/users/ahwagner/orgs","repos_url":"https://api.github.com/users/ahwagner/repos","events_url":"https://api.github.com/users/ahwagner/events{/privacy}","received_events_url":"https://api.github.com/users/ahwagner/received_events","type":"User","site_admin":false},"body":"Yay Xcode!","created_at":"2015-04-15T22:01:02Z","updated_at":"2015-04-15T22:01:02Z","html_url":"https://github.com/ahwagner/myJoin/pull/1#discussion_r28467568","pull_request_url":"https://api.github.com/repos/ahwagner/myJoin/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/ahwagner/myJoin/pulls/comments/28467568"},"html":{"href":"https://github.com/ahwagner/myJoin/pull/1#discussion_r28467568"},"pull_request":{"href":"https://api.github.com/repos/ahwagner/myJoin/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/ahwagner/myJoin/pulls/1","id":33400019,"html_url":"https://github.com/ahwagner/myJoin/pull/1","diff_url":"https://github.com/ahwagner/myJoin/pull/1.diff","patch_url":"https://github.com/ahwagner/myJoin/pull/1.patch","issue_url":"https://api.github.com/repos/ahwagner/myJoin/issues/1","number":1,"state":"open","locked":false,"title":"catch me if you can.","user":{"login":"LMT337","id":7295422,"avatar_url":"https://avatars.githubusercontent.com/u/7295422?v=3","gravatar_id":"","url":"https://api.github.com/users/LMT337","html_url":"https://github.com/LMT337","followers_url":"https://api.github.com/users/LMT337/followers","following_url":"https://api.github.com/users/LMT337/following{/other_user}","gists_url":"https://api.github.com/users/LMT337/gists{/gist_id}","starred_url":"https://api.github.com/users/LMT337/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LMT337/subscriptions","organizations_url":"https://api.github.com/users/LMT337/orgs","repos_url":"https://api.github.com/users/LMT337/repos","events_url":"https://api.github.com/users/LMT337/events{/privacy}","received_events_url":"https://api.github.com/users/LMT337/received_events","type":"User","site_admin":false},"body":"good luck yo!","created_at":"2015-04-15T21:48:12Z","updated_at":"2015-04-15T22:01:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4da5d22ed3a4f381b6beaf29af36f7a790f9e741","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ahwagner/myJoin/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ahwagner/myJoin/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ahwagner/myJoin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ahwagner/myJoin/issues/1/comments","statuses_url":"https://api.github.com/repos/ahwagner/myJoin/statuses/d3d9fea3eba7ea49afd6c4be4f11145f749a9f65","head":{"label":"LMT337:test_alex","ref":"test_alex","sha":"d3d9fea3eba7ea49afd6c4be4f11145f749a9f65","user":{"login":"LMT337","id":7295422,"avatar_url":"https://avatars.githubusercontent.com/u/7295422?v=3","gravatar_id":"","url":"https://api.github.com/users/LMT337","html_url":"https://github.com/LMT337","followers_url":"https://api.github.com/users/LMT337/followers","following_url":"https://api.github.com/users/LMT337/following{/other_user}","gists_url":"https://api.github.com/users/LMT337/gists{/gist_id}","starred_url":"https://api.github.com/users/LMT337/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LMT337/subscriptions","organizations_url":"https://api.github.com/users/LMT337/orgs","repos_url":"https://api.github.com/users/LMT337/repos","events_url":"https://api.github.com/users/LMT337/events{/privacy}","received_events_url":"https://api.github.com/users/LMT337/received_events","type":"User","site_admin":false},"repo":{"id":34016226,"name":"myJoin","full_name":"LMT337/myJoin","owner":{"login":"LMT337","id":7295422,"avatar_url":"https://avatars.githubusercontent.com/u/7295422?v=3","gravatar_id":"","url":"https://api.github.com/users/LMT337","html_url":"https://github.com/LMT337","followers_url":"https://api.github.com/users/LMT337/followers","following_url":"https://api.github.com/users/LMT337/following{/other_user}","gists_url":"https://api.github.com/users/LMT337/gists{/gist_id}","starred_url":"https://api.github.com/users/LMT337/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LMT337/subscriptions","organizations_url":"https://api.github.com/users/LMT337/orgs","repos_url":"https://api.github.com/users/LMT337/repos","events_url":"https://api.github.com/users/LMT337/events{/privacy}","received_events_url":"https://api.github.com/users/LMT337/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LMT337/myJoin","description":"A utility similar to GNU/BSD join, but allows joining by header names and supports multiple file joins.","fork":true,"url":"https://api.github.com/repos/LMT337/myJoin","forks_url":"https://api.github.com/repos/LMT337/myJoin/forks","keys_url":"https://api.github.com/repos/LMT337/myJoin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LMT337/myJoin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LMT337/myJoin/teams","hooks_url":"https://api.github.com/repos/LMT337/myJoin/hooks","issue_events_url":"https://api.github.com/repos/LMT337/myJoin/issues/events{/number}","events_url":"https://api.github.com/repos/LMT337/myJoin/events","assignees_url":"https://api.github.com/repos/LMT337/myJoin/assignees{/user}","branches_url":"https://api.github.com/repos/LMT337/myJoin/branches{/branch}","tags_url":"https://api.github.com/repos/LMT337/myJoin/tags","blobs_url":"https://api.github.com/repos/LMT337/myJoin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LMT337/myJoin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LMT337/myJoin/git/refs{/sha}","trees_url":"https://api.github.com/repos/LMT337/myJoin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LMT337/myJoin/statuses/{sha}","languages_url":"https://api.github.com/repos/LMT337/myJoin/languages","stargazers_url":"https://api.github.com/repos/LMT337/myJoin/stargazers","contributors_url":"https://api.github.com/repos/LMT337/myJoin/contributors","subscribers_url":"https://api.github.com/repos/LMT337/myJoin/subscribers","subscription_url":"https://api.github.com/repos/LMT337/myJoin/subscription","commits_url":"https://api.github.com/repos/LMT337/myJoin/commits{/sha}","git_commits_url":"https://api.github.com/repos/LMT337/myJoin/git/commits{/sha}","comments_url":"https://api.github.com/repos/LMT337/myJoin/comments{/number}","issue_comment_url":"https://api.github.com/repos/LMT337/myJoin/issues/comments{/number}","contents_url":"https://api.github.com/repos/LMT337/myJoin/contents/{+path}","compare_url":"https://api.github.com/repos/LMT337/myJoin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LMT337/myJoin/merges","archive_url":"https://api.github.com/repos/LMT337/myJoin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LMT337/myJoin/downloads","issues_url":"https://api.github.com/repos/LMT337/myJoin/issues{/number}","pulls_url":"https://api.github.com/repos/LMT337/myJoin/pulls{/number}","milestones_url":"https://api.github.com/repos/LMT337/myJoin/milestones{/number}","notifications_url":"https://api.github.com/repos/LMT337/myJoin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LMT337/myJoin/labels{/name}","releases_url":"https://api.github.com/repos/LMT337/myJoin/releases{/id}","created_at":"2015-04-15T20:14:14Z","updated_at":"2015-04-15T20:14:14Z","pushed_at":"2015-04-15T21:47:12Z","git_url":"git://github.com/LMT337/myJoin.git","ssh_url":"git@github.com:LMT337/myJoin.git","clone_url":"https://github.com/LMT337/myJoin.git","svn_url":"https://github.com/LMT337/myJoin","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Perl","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"ahwagner:master","ref":"master","sha":"aa44b70c78a10ebeafb83bb3f67d986216515ce2","user":{"login":"ahwagner","id":811065,"avatar_url":"https://avatars.githubusercontent.com/u/811065?v=3","gravatar_id":"","url":"https://api.github.com/users/ahwagner","html_url":"https://github.com/ahwagner","followers_url":"https://api.github.com/users/ahwagner/followers","following_url":"https://api.github.com/users/ahwagner/following{/other_user}","gists_url":"https://api.github.com/users/ahwagner/gists{/gist_id}","starred_url":"https://api.github.com/users/ahwagner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahwagner/subscriptions","organizations_url":"https://api.github.com/users/ahwagner/orgs","repos_url":"https://api.github.com/users/ahwagner/repos","events_url":"https://api.github.com/users/ahwagner/events{/privacy}","received_events_url":"https://api.github.com/users/ahwagner/received_events","type":"User","site_admin":false},"repo":{"id":33943528,"name":"myJoin","full_name":"ahwagner/myJoin","owner":{"login":"ahwagner","id":811065,"avatar_url":"https://avatars.githubusercontent.com/u/811065?v=3","gravatar_id":"","url":"https://api.github.com/users/ahwagner","html_url":"https://github.com/ahwagner","followers_url":"https://api.github.com/users/ahwagner/followers","following_url":"https://api.github.com/users/ahwagner/following{/other_user}","gists_url":"https://api.github.com/users/ahwagner/gists{/gist_id}","starred_url":"https://api.github.com/users/ahwagner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahwagner/subscriptions","organizations_url":"https://api.github.com/users/ahwagner/orgs","repos_url":"https://api.github.com/users/ahwagner/repos","events_url":"https://api.github.com/users/ahwagner/events{/privacy}","received_events_url":"https://api.github.com/users/ahwagner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ahwagner/myJoin","description":"A utility similar to GNU/BSD join, but allows joining by header names and supports multiple file joins.","fork":false,"url":"https://api.github.com/repos/ahwagner/myJoin","forks_url":"https://api.github.com/repos/ahwagner/myJoin/forks","keys_url":"https://api.github.com/repos/ahwagner/myJoin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ahwagner/myJoin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ahwagner/myJoin/teams","hooks_url":"https://api.github.com/repos/ahwagner/myJoin/hooks","issue_events_url":"https://api.github.com/repos/ahwagner/myJoin/issues/events{/number}","events_url":"https://api.github.com/repos/ahwagner/myJoin/events","assignees_url":"https://api.github.com/repos/ahwagner/myJoin/assignees{/user}","branches_url":"https://api.github.com/repos/ahwagner/myJoin/branches{/branch}","tags_url":"https://api.github.com/repos/ahwagner/myJoin/tags","blobs_url":"https://api.github.com/repos/ahwagner/myJoin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ahwagner/myJoin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ahwagner/myJoin/git/refs{/sha}","trees_url":"https://api.github.com/repos/ahwagner/myJoin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ahwagner/myJoin/statuses/{sha}","languages_url":"https://api.github.com/repos/ahwagner/myJoin/languages","stargazers_url":"https://api.github.com/repos/ahwagner/myJoin/stargazers","contributors_url":"https://api.github.com/repos/ahwagner/myJoin/contributors","subscribers_url":"https://api.github.com/repos/ahwagner/myJoin/subscribers","subscription_url":"https://api.github.com/repos/ahwagner/myJoin/subscription","commits_url":"https://api.github.com/repos/ahwagner/myJoin/commits{/sha}","git_commits_url":"https://api.github.com/repos/ahwagner/myJoin/git/commits{/sha}","comments_url":"https://api.github.com/repos/ahwagner/myJoin/comments{/number}","issue_comment_url":"https://api.github.com/repos/ahwagner/myJoin/issues/comments{/number}","contents_url":"https://api.github.com/repos/ahwagner/myJoin/contents/{+path}","compare_url":"https://api.github.com/repos/ahwagner/myJoin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ahwagner/myJoin/merges","archive_url":"https://api.github.com/repos/ahwagner/myJoin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ahwagner/myJoin/downloads","issues_url":"https://api.github.com/repos/ahwagner/myJoin/issues{/number}","pulls_url":"https://api.github.com/repos/ahwagner/myJoin/pulls{/number}","milestones_url":"https://api.github.com/repos/ahwagner/myJoin/milestones{/number}","notifications_url":"https://api.github.com/repos/ahwagner/myJoin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ahwagner/myJoin/labels{/name}","releases_url":"https://api.github.com/repos/ahwagner/myJoin/releases{/id}","created_at":"2015-04-14T16:30:14Z","updated_at":"2015-04-14T18:14:09Z","pushed_at":"2015-04-15T21:48:12Z","git_url":"git://github.com/ahwagner/myJoin.git","ssh_url":"git@github.com:ahwagner/myJoin.git","clone_url":"https://github.com/ahwagner/myJoin.git","svn_url":"https://github.com/ahwagner/myJoin","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ahwagner/myJoin/pulls/1"},"html":{"href":"https://github.com/ahwagner/myJoin/pull/1"},"issue":{"href":"https://api.github.com/repos/ahwagner/myJoin/issues/1"},"comments":{"href":"https://api.github.com/repos/ahwagner/myJoin/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ahwagner/myJoin/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ahwagner/myJoin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ahwagner/myJoin/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ahwagner/myJoin/statuses/d3d9fea3eba7ea49afd6c4be4f11145f749a9f65"}}}}