From: Matt S Trout Date: Mon, 11 May 2009 18:43:02 +0000 (+0100) Subject: move calculation code to utility package X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ac04ccd983e0bdb51c2094fa53ba093dccd42bad;p=engit%2FIron-Munger.git move calculation code to utility package --- diff --git a/answer.pl b/lib/IronMunger/Calculate.pm similarity index 93% rename from answer.pl rename to lib/IronMunger/Calculate.pm index 2946b91..1178c81 100644 --- a/answer.pl +++ b/lib/IronMunger/Calculate.pm @@ -1,3 +1,7 @@ +package IronMunger::Calculate; + +use strict; +use warnings; use signatures; use autobox::DateTime::Duration; @@ -26,3 +30,5 @@ sub successful_sequential_posts (@posts) { check_post_gap(3, 32, @posts), # 4 posts every 32 days ); } + +1;