projects
/
engit/Iron-Munger.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
a51e36e
)
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]
patch
|
blob
|
blame
|
history
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
(file)
--- 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;