What this obfu lacks in cunning obfuscation it makes up for in generosity, for it keeps on giving in the spirit of this holiday season.

Enjoy the insight normally reserved only for Santa and his elves. Happy Holidays!

my(@g,@b);while(my$l=<DATA>){chomp$l;my@s=split/\|/,$l;for(@s){my$ty= chop;tr/a-zA-Z/n-za-mN-ZA-M/;my$r_a=($ty=~/G/i)?\@g:\@b;push@{$r_a},$ _}}GIFT_GIVING:{print"--- Santa's List Reader ---\nSanta, enter chi", "ld's name, or [Quit] to quit.\n";;my$n="";;;until("All gifts are"=~/ given/x){$n=<STDIN>;chomp$n;last if$n=~/^Quit/i;my($h,$f)=(length($n) %2>0)?("good",$g[rand(@g)]):("bad",$b[rand(@b)]);print"$n was $h th", "is year. Give $f.\n\n\n\nEnter child's name, Santa, or [Quit] to ", "quit.\n"}unless("Grinch"=~/Stole Christmas/){print"\n\n\n\nSanta, ", "you can't quit yet; kids need their toys.\n\n";redo GIFT_GIVING}} __DATA__ Cynl FgngvbaG|FpbbgreG|QbyyG|Creyzbaxf GfuegG|Fuval arj abgrobbxG jbeyq crnprG|Wnpxvr Puna IvqrbG|GevplpyrG|Sver RatvarG|ChcclG Ebggra CbgngbB|Qbt cbbcB|-- ibgrfB|gur syhB|yhzc bs pbnyB|jbezfB ebggra rttfB|ohpxrg bs ibzvgB|Wnpxvr Puna IvqrbB

This one isn't about "figuring it out". Just have fun. Merry Christmas everyone. :)


Dave


In reply to He's Making a List, Checking it Twice... by davido

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.