DEBSOURCES
Skip Quicknav
sources / perl / 5.42.0-2 / lib / perl5db / t / fact
1234567891011121314
#!/usr/bin/perl use strict; use warnings; sub fact { my $n = shift; if ($n > 1) { return $n * fact($n - 1); } else { return 1; } } fact(5);