{"action":"opened","issue":{"url":"https://api.github.com/repos/khrt/Raisin/issues/9","labels_url":"https://api.github.com/repos/khrt/Raisin/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/khrt/Raisin/issues/9/comments","events_url":"https://api.github.com/repos/khrt/Raisin/issues/9/events","html_url":"https://github.com/khrt/Raisin/issues/9","id":60525439,"number":9,"title":"The darth.pl example can't post new users, missing max().","user":{"login":"hartzell","id":312978,"avatar_url":"https://avatars.githubusercontent.com/u/312978?v=3","gravatar_id":"","url":"https://api.github.com/users/hartzell","html_url":"https://github.com/hartzell","followers_url":"https://api.github.com/users/hartzell/followers","following_url":"https://api.github.com/users/hartzell/following{/other_user}","gists_url":"https://api.github.com/users/hartzell/gists{/gist_id}","starred_url":"https://api.github.com/users/hartzell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hartzell/subscriptions","organizations_url":"https://api.github.com/users/hartzell/orgs","repos_url":"https://api.github.com/users/hartzell/repos","events_url":"https://api.github.com/users/hartzell/events{/privacy}","received_events_url":"https://api.github.com/users/hartzell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-10T16:14:34Z","updated_at":"2015-03-10T16:14:34Z","closed_at":null,"body":"The darth.pl example explodes when one tries to post a new user (via the swagger sandbox).\r\n\r\nThe script seems to be missing a definition for a max() function.\r\n\r\nAdding\r\n\r\n```perl\r\nuse List::Util qw(max);\r\n```\r\n\r\ne.g. after line 12 seems to fix it.\r\n\r\nI'm using\r\n\r\n```\r\nallons:~ USERNAME$ perl -v\r\n\r\nThis is perl 5, version 18, subversion 4 (v5.18.4) built for darwin-2level\r\n```\r\n\r\non a mac running OS X 10.9.5.\r\n\r\nI set up my test environment via\r\n\r\n```\r\nallons:~ USERNAME$ cpanm -l ~/tmp/raisin-experiment Raisin\r\n```\r\n\r\nand ran the demo like this:\r\n\r\n```\r\nallons:~ USERNAME$ env PERL5LIB=/Users/USERNAME/tmp/raisin-experiment/lib/perl5 PATH=/Users/USERNAME/tmp/raisin-experiment/bin:$PATH plackup ~/.cpanm/latest-build/Raisin-0.58/examples/pod-synopsis-app/darth.pl\r\n```\r\n\r\ng."}}