Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
an example program using bigints which runs under 5 and 6
  • Loading branch information
stmuk committed Nov 21, 2015
1 parent 14fbd17 commit 59616f6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/Language/faq.pod
Expand Up @@ -561,4 +561,14 @@ Examples:
1;
# A perl program which works under both perl5 (with perl -Mbigint)
# and perl6
my ($prev, $current) = (1,0);
for ( 0..100_000) {
($prev, $current) = ($current, $prev + $current);
}
print $current;
=end pod

0 comments on commit 59616f6

Please sign in to comment.