Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Compression in Golf: Part II

by eyepopslikeamosquito (Canon)
on Oct 06, 2012 at 07:18 UTC ( #997591=perlmeditation: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # original 96-stroke solution
    $c[$_*=.52,5.5-4.7*cos][8+7.4*sin]=($_^$`%12?o:x)&($_^$'/5?o:'}')for<>
    +!~/:/..11;print"@$_
    ...
    # 102-stroke pack-friendly makeover
    map$c[$_*=.52,5.5-4.7*cos][8+7.4*sin]=($`%12^$_?o:x)&($'/5^$_
    ?o:v125),0..s//<>/e./:/;print"@$_\n"for@c#```
    
  2. or download this
    @c=(@b=(++$n,bottle.'s'x@-,of,beer),on,the,wall),s//Take one down and 
    +pass it around, @c.
    
    @c, @b.
    /until/, 99\D+/;print$'."Go to the store and buy some more$&"
    
  3. or download this
    @m=(@z=(++$n,bottle.$&,of,beer),on,the,wall),s/^/,$"@m.\n\n@m,$"@z.\n\
    +u@j/until@j=/s/?(take,one,down,an.d,pass,it,around):(go,to,the,store,
    +an.d,buy,some,more),/^99/m;print$&.$'.$`
    
  4. or download this
    s//\utakevonevdownvandvpassvitvaround,v@s.__/until@s=(@b=++$s.vbottle.
    +"s"x@b.vofvbeer,onvthevwall),s//@s,v@b._/,/99/;s/$/\ugovtovthevstorev
    +andvbuyvsomevmore,v@s./;y/v_/\40\n/;print
    
  5. or download this
    $_=v71.ovtovthevstorevandvbuyvsomevmore;@z=($b=++$n.vbottle."s"x@+.vof
    +vbeer,onvthevwall),s;^;\utakevonevdownvandvpassvitvaround,v@z.\n\n@z,
    +v$b.\n;,y/v/\40/until/,.99[^9]*/;print$'.$&
    
  6. or download this
    #        1         2         3         4         5         6         7
    #234567890123456789012345678901234567890123456789012345678901234567890
    +123
    ...
    ;,y/v/\40/until/,.99[^9]*/;print$'.$&
    #234567890123456789012345678901234567
    #        1         2         3
    
  7. or download this
    s;^;\utakevonevdownvandvpassvitvaround,v@z.\n\n@z,v$b.
    ;
    
  8. or download this
    my $source = <<'PERSEVEROUS';
    v;$_=v71.ovtovthevstorevandvbuyvsomevmore;@z=($b=++$n.vbottle."s"x@+.v
    +of.
    ...
    open my $fh, '>', 'b.pl' or die "error: open b.pl: $!";
    binmode $fh;
    print $fh "eval lc pack u54,'" . $out . "'";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://997591]
Approved by Athanasius
Front-paged by Athanasius
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2014-08-30 17:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls