good chemistry is complicated,
and a little bit messy -LW
RE: my first try: japhby tedv (Pilgrim)
|on Nov 08, 2000 at 23:09 UTC||Need Help??|
You might want to try using "special" variables to make your
life easier and/or more obfuscated. For example, don't use
@d. Use @_ instead. This means
you can write shift instead of shift(@d).
You can use $/, the newline separator, instead
of \n. Similar to @_, you could
use $_ instead of $d which gets
you tighter regular expressions. And lastly, instead of
making your for loop work like C code (for ($n=1;$n < 21; $n++)),
you might try something like
for $n (1..@_). Note that @_
is forced into scalar context, which translates to the
length, which is 20.
Other thoughts include using the list nature of pack to simplify the for loop. Also, the numbers 255, 195, and 192 come up multiple times in the data block. You might want to start with a smaller data block and graft multiple copies of those numbers into it. It might result in smaller code.