in reply to Re^2: Is it possible to create a sub exclusive to a sub? (nasty memory leak)
in thread Is it possible to create a sub exclusive to a sub?
(for the sake of simplicity, this has been coded so that the nth term IS the nth term)sub fibo { my $inp = shift; $inp > 2 ? &fibo($inp - 1) + &fibo($inp - 2) : 1 }
1) 1
2) 1
3) 2
4) 3
|
|---|