{"action":"created","comment":{"url":"https://api.github.com/repos/ardavey/Intermediate-Perl/pulls/comments/32731225","id":32731225,"diff_hunk":"@@ -0,0 +1,31 @@\n+#!/usr/bin/perl\n+use v5.10;\n+use strict;\n+use warnings;\n+use Storable qw( nstore retrieve );\n+use Data::Dumper;\n+\n+require '/home/codio/workspace/chapter06/mssw/file_reader.pm';\n+\n+my $output   = '/home/codio/workspace/chapter06/mssw/running-totals.dat';\n+\n+\n+if ( !scalar @ARGV){\n+    die( \"Please specify a log file\" );\n+}\n+\n+# First lets load up the new old data\n+my $report_ref;\n+if( -s $output){\n+    $report_ref = retrieve $output;\n+}\n+\n+my $filename = $ARGV[0];\n+my $data = read_log_file( $filename );\n+my %report = %{ generate_report( $report_ref, $data ) };\n+\n+\n+\n+print \"Dumping new totals: \" . Dumper(\\%report);\n+\n+nstore( \\%report, $output);","path":"chapter06/mssw/exercise1.pl","position":31,"original_position":31,"commit_id":"40d987916cbe86d9f5dfcf72454e6c30e3433527","original_commit_id":"40d987916cbe86d9f5dfcf72454e6c30e3433527","user":{"login":"Spinodal","id":2004473,"avatar_url":"https://avatars.githubusercontent.com/u/2004473?v=3","gravatar_id":"","url":"https://api.github.com/users/Spinodal","html_url":"https://github.com/Spinodal","followers_url":"https://api.github.com/users/Spinodal/followers","following_url":"https://api.github.com/users/Spinodal/following{/other_user}","gists_url":"https://api.github.com/users/Spinodal/gists{/gist_id}","starred_url":"https://api.github.com/users/Spinodal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Spinodal/subscriptions","organizations_url":"https://api.github.com/users/Spinodal/orgs","repos_url":"https://api.github.com/users/Spinodal/repos","events_url":"https://api.github.com/users/Spinodal/events{/privacy}","received_events_url":"https://api.github.com/users/Spinodal/received_events","type":"User","site_admin":false},"body":"I ran out of time so decided to push what i had. I'll try and add it in tonight","created_at":"2015-06-18T13:51:06Z","updated_at":"2015-06-18T13:51:06Z","html_url":"https://github.com/ardavey/Intermediate-Perl/pull/38#discussion_r32731225","pull_request_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/ardavey/Intermediate-Perl/pulls/comments/32731225"},"html":{"href":"https://github.com/ardavey/Intermediate-Perl/pull/38#discussion_r32731225"},"pull_request":{"href":"https://api.github.com/repos/ardavey/Intermediate-Perl/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/ardavey/Intermediate-Perl/pulls/38","id":37990006,"html_url":"https://github.com/ardavey/Intermediate-Perl/pull/38","diff_url":"https://github.com/ardavey/Intermediate-Perl/pull/38.diff","patch_url":"https://github.com/ardavey/Intermediate-Perl/pull/38.patch","issue_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/issues/38","number":38,"state":"open","locked":false,"title":"Mssw chapter06","user":{"login":"Spinodal","id":2004473,"avatar_url":"https://avatars.githubusercontent.com/u/2004473?v=3","gravatar_id":"","url":"https://api.github.com/users/Spinodal","html_url":"https://github.com/Spinodal","followers_url":"https://api.github.com/users/Spinodal/followers","following_url":"https://api.github.com/users/Spinodal/following{/other_user}","gists_url":"https://api.github.com/users/Spinodal/gists{/gist_id}","starred_url":"https://api.github.com/users/Spinodal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Spinodal/subscriptions","organizations_url":"https://api.github.com/users/Spinodal/orgs","repos_url":"https://api.github.com/users/Spinodal/repos","events_url":"https://api.github.com/users/Spinodal/events{/privacy}","received_events_url":"https://api.github.com/users/Spinodal/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-18T10:03:05Z","updated_at":"2015-06-18T13:51:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"43c03177140d71b1738aa04ceb1a084bf10efd08","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/pulls/38/commits","review_comments_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/pulls/38/comments","review_comment_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/issues/38/comments","statuses_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/statuses/40d987916cbe86d9f5dfcf72454e6c30e3433527","head":{"label":"ardavey:mssw_chapter06","ref":"mssw_chapter06","sha":"40d987916cbe86d9f5dfcf72454e6c30e3433527","user":{"login":"ardavey","id":2790047,"avatar_url":"https://avatars.githubusercontent.com/u/2790047?v=3","gravatar_id":"","url":"https://api.github.com/users/ardavey","html_url":"https://github.com/ardavey","followers_url":"https://api.github.com/users/ardavey/followers","following_url":"https://api.github.com/users/ardavey/following{/other_user}","gists_url":"https://api.github.com/users/ardavey/gists{/gist_id}","starred_url":"https://api.github.com/users/ardavey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ardavey/subscriptions","organizations_url":"https://api.github.com/users/ardavey/orgs","repos_url":"https://api.github.com/users/ardavey/repos","events_url":"https://api.github.com/users/ardavey/events{/privacy}","received_events_url":"https://api.github.com/users/ardavey/received_events","type":"User","site_admin":false},"repo":{"id":26066281,"name":"Intermediate-Perl","full_name":"ardavey/Intermediate-Perl","owner":{"login":"ardavey","id":2790047,"avatar_url":"https://avatars.githubusercontent.com/u/2790047?v=3","gravatar_id":"","url":"https://api.github.com/users/ardavey","html_url":"https://github.com/ardavey","followers_url":"https://api.github.com/users/ardavey/followers","following_url":"https://api.github.com/users/ardavey/following{/other_user}","gists_url":"https://api.github.com/users/ardavey/gists{/gist_id}","starred_url":"https://api.github.com/users/ardavey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ardavey/subscriptions","organizations_url":"https://api.github.com/users/ardavey/orgs","repos_url":"https://api.github.com/users/ardavey/repos","events_url":"https://api.github.com/users/ardavey/events{/privacy}","received_events_url":"https://api.github.com/users/ardavey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ardavey/Intermediate-Perl","description":"Exercise solutions from the O'Reilly book of the same name.","fork":false,"url":"https://api.github.com/repos/ardavey/Intermediate-Perl","forks_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/forks","keys_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/teams","hooks_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/hooks","issue_events_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/issues/events{/number}","events_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/events","assignees_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/assignees{/user}","branches_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/branches{/branch}","tags_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/tags","blobs_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/git/refs{/sha}","trees_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/statuses/{sha}","languages_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/languages","stargazers_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/stargazers","contributors_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/contributors","subscribers_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/subscribers","subscription_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/subscription","commits_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/commits{/sha}","git_commits_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/git/commits{/sha}","comments_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/comments{/number}","issue_comment_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/issues/comments{/number}","contents_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/contents/{+path}","compare_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/merges","archive_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/downloads","issues_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/issues{/number}","pulls_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/pulls{/number}","milestones_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/milestones{/number}","notifications_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/labels{/name}","releases_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/releases{/id}","created_at":"2014-11-01T23:27:01Z","updated_at":"2015-05-22T09:48:20Z","pushed_at":"2015-06-18T11:05:54Z","git_url":"git://github.com/ardavey/Intermediate-Perl.git","ssh_url":"git@github.com:ardavey/Intermediate-Perl.git","clone_url":"https://github.com/ardavey/Intermediate-Perl.git","svn_url":"https://github.com/ardavey/Intermediate-Perl","homepage":null,"size":1819,"stargazers_count":0,"watchers_count":0,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"ardavey:master","ref":"master","sha":"ed1c271b9c392b3656e6837696da28c7a3f682db","user":{"login":"ardavey","id":2790047,"avatar_url":"https://avatars.githubusercontent.com/u/2790047?v=3","gravatar_id":"","url":"https://api.github.com/users/ardavey","html_url":"https://github.com/ardavey","followers_url":"https://api.github.com/users/ardavey/followers","following_url":"https://api.github.com/users/ardavey/following{/other_user}","gists_url":"https://api.github.com/users/ardavey/gists{/gist_id}","starred_url":"https://api.github.com/users/ardavey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ardavey/subscriptions","organizations_url":"https://api.github.com/users/ardavey/orgs","repos_url":"https://api.github.com/users/ardavey/repos","events_url":"https://api.github.com/users/ardavey/events{/privacy}","received_events_url":"https://api.github.com/users/ardavey/received_events","type":"User","site_admin":false},"repo":{"id":26066281,"name":"Intermediate-Perl","full_name":"ardavey/Intermediate-Perl","owner":{"login":"ardavey","id":2790047,"avatar_url":"https://avatars.githubusercontent.com/u/2790047?v=3","gravatar_id":"","url":"https://api.github.com/users/ardavey","html_url":"https://github.com/ardavey","followers_url":"https://api.github.com/users/ardavey/followers","following_url":"https://api.github.com/users/ardavey/following{/other_user}","gists_url":"https://api.github.com/users/ardavey/gists{/gist_id}","starred_url":"https://api.github.com/users/ardavey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ardavey/subscriptions","organizations_url":"https://api.github.com/users/ardavey/orgs","repos_url":"https://api.github.com/users/ardavey/repos","events_url":"https://api.github.com/users/ardavey/events{/privacy}","received_events_url":"https://api.github.com/users/ardavey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ardavey/Intermediate-Perl","description":"Exercise solutions from the O'Reilly book of the same name.","fork":false,"url":"https://api.github.com/repos/ardavey/Intermediate-Perl","forks_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/forks","keys_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/teams","hooks_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/hooks","issue_events_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/issues/events{/number}","events_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/events","assignees_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/assignees{/user}","branches_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/branches{/branch}","tags_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/tags","blobs_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/git/refs{/sha}","trees_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/statuses/{sha}","languages_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/languages","stargazers_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/stargazers","contributors_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/contributors","subscribers_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/subscribers","subscription_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/subscription","commits_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/commits{/sha}","git_commits_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/git/commits{/sha}","comments_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/comments{/number}","issue_comment_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/issues/comments{/number}","contents_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/contents/{+path}","compare_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/merges","archive_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/downloads","issues_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/issues{/number}","pulls_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/pulls{/number}","milestones_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/milestones{/number}","notifications_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/labels{/name}","releases_url":"https://api.github.com/repos/ardavey/Intermediate-Perl/releases{/id}","created_at":"2014-11-01T23:27:01Z","updated_at":"2015-05-22T09:48:20Z","pushed_at":"2015-06-18T11:05:54Z","git_url":"git://github.com/ardavey/Intermediate-Perl.git","ssh_url":"git@github.com:ardavey/Intermediate-Perl.git","clone_url":"https://github.com/ardavey/Intermediate-Perl.git","svn_url":"https://github.com/ardavey/Intermediate-Perl","homepage":null,"size":1819,"stargazers_count":0,"watchers_count":0,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ardavey/Intermediate-Perl/pulls/38"},"html":{"href":"https://github.com/ardavey/Intermediate-Perl/pull/38"},"issue":{"href":"https://api.github.com/repos/ardavey/Intermediate-Perl/issues/38"},"comments":{"href":"https://api.github.com/repos/ardavey/Intermediate-Perl/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/ardavey/Intermediate-Perl/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/ardavey/Intermediate-Perl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ardavey/Intermediate-Perl/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/ardavey/Intermediate-Perl/statuses/40d987916cbe86d9f5dfcf72454e6c30e3433527"}}}}