### Compression in Golf: Part II

by eyepopslikeamosquito (Chancellor)
 on Oct 06, 2012 at 07:18 UTC Need Help??

```# 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#```
```
```@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\$&"
```
```@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,
```
```s//\utakevonevdownvandvpassvitvaround,v@s.__/until@s=(@b=++\$s.vbottle.
+"s"x@b.vofvbeer,onvthevwall),s//@s,v@b._/,/99/;s/\$/\ugovtovthevstorev
```
```\$_=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\$'.\$&
```
```#        1         2         3         4         5         6         7
#234567890123456789012345678901234567890123456789012345678901234567890
+123
...
;,y/v/\40/until/,.99[^9]*/;print\$'.\$&
#234567890123456789012345678901234567
#        1         2         3
```
```s;^;\utakevonevdownvandvpassvitvaround,v@z.\n\n@z,v\$b.
;
```
```my \$source = <<'PERSEVEROUS';
+of.
...
open my \$fh, '>', 'b.pl' or die "error: open b.pl: \$!";
binmode \$fh;
print \$fh "eval lc pack u54,'" . \$out . "'";
```

Create A New User
Node Status?
node history
Node Type: perlmeditation [id://997591]
Approved by Athanasius
Front-paged by Athanasius
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2018-06-18 07:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
Voting Booth?
Should cpanminus be part of the standard Perl release?

Results (109 votes). Check out past polls.

Notices?