move calculation code to utility package
Matt S Trout [Mon, 11 May 2009 18:43:02 +0000 (19:43 +0100)]
lib/IronMunger/Calculate.pm [moved from answer.pl with 93% similarity]

similarity index 93%
rename from answer.pl
rename to lib/IronMunger/Calculate.pm
index 2946b91..1178c81 100644 (file)
--- a/answer.pl
@@ -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;