in reply to how to speed up program dealing with large numbers?

If you want one line if statements use Perl's statement modifier form of if:

$phiApprox = 0 if $i <= 1;

for and while can be used that way too.


True laziness is hard work

Replies are listed 'Best First'.
Re^2: how to speed up program dealing with large numbers?
by Solarplight (Sexton) on Mar 22, 2010 at 00:41 UTC

    Thanks for the tip. I likey, a little less typing. I am likeing perl more and more.