The best way I can think of would be to use an ordinary loop construct. Behold:
my $n; foreach(1 .. 1_000_000_000){ $n++ if $_ % 2 == 0; }
There are probably others ways (this is Perl after all :).
Update: Sorry, misread the question.
In reply to Re: Making perl's map and grep more large list friendly
by kejohm
in thread Making perl's map and grep more large list friendly
by nudge
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |