your version sounds much perlish! infact I translated the code line by line.
I totally agree that your version is more readable and .. explicit. It also avoid the divisor repetition.
L*
In reply to Re^4: porting C code to Perl -- solved
by Discipulus
in thread porting C code to Perl
by Discipulus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |