good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^4: porting C code to Perl -- solvedby Discipulus (Canon) |
on Oct 23, 2017 at 19:59 UTC ( [id://1201928]=note: print w/replies, xml ) | Need Help?? |
Hi soonix, 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*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|