in reply to Re^4: c-style for loop versus list for loop, and bigint
in thread c-style for loop versus list for loop, and bigint
use bigint; my $answer = 1; print ref $answer; # prints "Math::BigInt" for my $i (1..1) { print ref $i; # prints nothing } for my $i (reverse 1..2) { print ref $i; # prints nothing }
Lets be honest, these kind of problems are one of the reasons why Python is more popular for scientific calculations.
Cheers Rolf
|
|---|