repo.or.cz
/
ruby-svn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
r18455 reverted.
[ruby-svn.git]
/
benchmark
/
other-lang
/
fib.pl
blob
a46f666d1e0de4ef379944c76b0bde1451074d76
1
sub
fib
{
2
my
$n
=
$_
[
0
];
3
if
(
$n
<
3
){
4
return
1
;
5
}
6
else
{
7
return
fib
(
$n
-
1
) +
fib
(
$n
-
2
);
8
}
9
};
10
11
&
fib
(
34
);