Perl-Sensitive Sunglasses | |
PerlMonks |
Re3: Genetic Codeby dragonchild (Archbishop) |
on Aug 18, 2003 at 20:24 UTC ( [id://284711]=note: print w/replies, xml ) | Need Help?? |
%: Modolus operator. If $a % $b, returns the remainder when $a is divided by $b. Thus, 45 % 6 is 3, as is 51 % 6.
The code in question does this:
What this is doing is treating @FMT_DNA as a circular list - a list that will wrap around to the beginning when it runs out of elements. So, if it was 3 elements, it would do element 0, element 1, element 2, element 0, element 1, etc. ------ The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6 Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
In Section
Obfuscated Code
|
|