How do you do it in C? In the first instance you can easily transliterate the C to Perl. That's almost as simple as sticking a $ in front of each variable and changing function declarations to Perl syntax.
Once you have the first cut of the conversion done and your Perl test suite gives the same answers as the C test suite, you can tidy up the Perl code to take advantage of Perl's greater expressiveness to end up with easier to maintain code.
If that really is a problem for you show us the C code at least and we can help with translation. Although if your Perl is that shaky, why are you converting your working C code?
In reply to Re: Particle movement question
by GrandFather
in thread Particle movement question
by koda123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |