=========================================
Back ground:
This situation has been fixed in Perl5.005. Use of .. in a for loop will iterate over the range, without creating the entire range.
Expand|Select|Wrap|Line Numbers
- for my $i (5 .. 500_005) {
- push(@results, some_func($i));
- }
Problem:
Here is the catch, think this 'Range iterator' is used only for integers. How about numbers bigger than integers
When I tried:
Expand|Select|Wrap|Line Numbers
- for my $i (9845456557 .. 9845456559) {
- }
Range iterator outside integer range.
I can do it in the normal crude way, by having a 'for' loop but want to check whether any other function is there that supports my case.
Thankz in advance.