diff options
| author | Paul Buetow (mars.fritz.box) <paul@buetow.org> | 2014-03-24 23:32:54 +0100 |
|---|---|---|
| committer | Paul Buetow (mars.fritz.box) <paul@buetow.org> | 2014-03-24 23:32:54 +0100 |
| commit | b8d1046fe4542237078ec18a1a8a93b79c8c1400 (patch) | |
| tree | 6cf37417df1cb62a5804c226e18664aff7859452 /christmas.pl | |
initial import
Diffstat (limited to 'christmas.pl')
| -rw-r--r-- | christmas.pl | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/christmas.pl b/christmas.pl new file mode 100644 index 0000000..ab9e802 --- /dev/null +++ b/christmas.pl @@ -0,0 +1,41 @@ +#!/usr/bin/perl + +# (C) 2006 by Paul C. Buetow (http://paul.buetow.org) + +Christmas:{time;#!!! + +Children: do tell $wishes; + +Santa: for $each (@children) { +BEGIN { read $each, $their, wishes and study them; use Memoize#ing + +} use constant gift, 'wrapping'; +package Gifts; pack $each, gift and bless $each and goto deliver +or do import if not local $available,!!! HO, HO, HO; + +redo Santa, pipe $gifts, to_childs; +redo Santa and do return if last one, is, delivered; + +deliver: gift and require diagnostics if our $gifts ,not break; +do{ use NEXT; time; tied $gifts} if broken and dump the, broken, ones; +The_children: sleep and wait for (each %gift) and try { to => untie $gifts }; + +redo Santa, pipe $gifts, to_childs; +redo Santa and do return if last one, is, delivered; + +The_christmas_tree: formline s/ /childrens/, $gifts; +alarm and warn if not exists $Christmas{ tree}, @t, $ENV{HOME}; +write <<EMail + to the parents to buy a new christmas tree!!!!111 + and send the +EMail +;wait and redo deliver until defined local $tree; + +redo Santa, pipe $gifts, to_childs; +redo Santa and do return if last one, is, delivered ;} + +END {} our $mission and do sleep until next Christmas ;} + +__END__ + +This is perl, v5.8.8 built for i386-freebsd-64int |
